<html>
<head>
<title>File Source for pclzip.lib.php</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">PHPExcel</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          		  [ <a href="../classtrees_PHPExcel.html" class="menu">class tree: PHPExcel</a> ]
		  [ <a href="../elementindex_PHPExcel.html" class="menu">index: PHPExcel</a> ]
		  	    [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
	<div id="todolist">
			<p><a href="../todolist.html">Todo List</a></p>
	</div>
      <b>Packages:</b><br />
              <a href="../li_PHPExcel.html">PHPExcel</a><br />
              <a href="../li_JAMA.html">JAMA</a><br />
              <a href="../li_Math_Stats.html">Math_Stats</a><br />
              <a href="../li_PHPExcel_CachedObjectStorage.html">PHPExcel_CachedObjectStorage</a><br />
              <a href="../li_PHPExcel_Calculation.html">PHPExcel_Calculation</a><br />
              <a href="../li_PHPExcel_Cell.html">PHPExcel_Cell</a><br />
              <a href="../li_PHPExcel_Chart.html">PHPExcel_Chart</a><br />
              <a href="../li_PHPExcel_Chart_Renderer.html">PHPExcel_Chart_Renderer</a><br />
              <a href="../li_PHPExcel_Reader.html">PHPExcel_Reader</a><br />
              <a href="../li_PHPExcel_Reader_Excel5.html">PHPExcel_Reader_Excel5</a><br />
              <a href="../li_PHPExcel_Reader_Excel2007.html">PHPExcel_Reader_Excel2007</a><br />
              <a href="../li_PHPExcel_RichText.html">PHPExcel_RichText</a><br />
              <a href="../li_PHPExcel_Settings.html">PHPExcel_Settings</a><br />
              <a href="../li_PHPExcel_Shared.html">PHPExcel_Shared</a><br />
              <a href="../li_PHPExcel_Shared_Escher.html">PHPExcel_Shared_Escher</a><br />
              <a href="../li_PHPExcel_Shared_OLE.html">PHPExcel_Shared_OLE</a><br />
              <a href="../li_PHPExcel_Shared_Trend.html">PHPExcel_Shared_Trend</a><br />
              <a href="../li_PHPExcel_Shared_ZipArchive.html">PHPExcel_Shared_ZipArchive</a><br />
              <a href="../li_PHPExcel_Style.html">PHPExcel_Style</a><br />
              <a href="../li_PHPExcel_Worksheet.html">PHPExcel_Worksheet</a><br />
              <a href="../li_PHPExcel_Worksheet_Drawing.html">PHPExcel_Worksheet_Drawing</a><br />
              <a href="../li_PHPExcel_Writer.html">PHPExcel_Writer</a><br />
              <a href="../li_PHPExcel_Writer_Excel5.html">PHPExcel_Writer_Excel5</a><br />
              <a href="../li_PHPExcel_Writer_Excel2007.html">PHPExcel_Writer_Excel2007</a><br />
            <br /><br />
                  
      
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1 align="center">Source for file pclzip.lib.php</h1>
<p>Documentation is available at <a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html">pclzip.lib.php</a></p>
<div class="src-code">
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-comm">//&nbsp;PhpConcept&nbsp;Library&nbsp;-&nbsp;Zip&nbsp;Module&nbsp;2.8.2</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-comm">//&nbsp;License&nbsp;GNU/LGPL&nbsp;-&nbsp;Vincent&nbsp;Blavet&nbsp;-&nbsp;August&nbsp;2009</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-comm">//&nbsp;http://www.phpconcept.net</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-comm">//</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-comm">//&nbsp;Presentation&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;PclZip&nbsp;is&nbsp;a&nbsp;PHP&nbsp;library&nbsp;that&nbsp;manage&nbsp;ZIP&nbsp;archives.</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;So&nbsp;far&nbsp;tests&nbsp;show&nbsp;that&nbsp;archives&nbsp;generated&nbsp;by&nbsp;PclZip&nbsp;are&nbsp;readable&nbsp;by</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;WinZip&nbsp;application&nbsp;and&nbsp;other&nbsp;tools.</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-comm">//</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;See&nbsp;readme.txt&nbsp;and&nbsp;http://www.phpconcept.net</span></div></li>
<li><div class="src-line"><a name="a16"></a><span class="src-comm">//</span></div></li>
<li><div class="src-line"><a name="a17"></a><span class="src-comm">//&nbsp;Warning&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a18"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;library&nbsp;and&nbsp;the&nbsp;associated&nbsp;files&nbsp;are&nbsp;non&nbsp;commercial,&nbsp;non&nbsp;professional</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;work.</span></div></li>
<li><div class="src-line"><a name="a20"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;It&nbsp;should&nbsp;not&nbsp;have&nbsp;unexpected&nbsp;results.&nbsp;However&nbsp;if&nbsp;any&nbsp;damage&nbsp;is&nbsp;caused&nbsp;by</span></div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;this&nbsp;software&nbsp;the&nbsp;author&nbsp;can&nbsp;not&nbsp;be&nbsp;responsible.</span></div></li>
<li><div class="src-line"><a name="a22"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;use&nbsp;of&nbsp;this&nbsp;software&nbsp;is&nbsp;at&nbsp;the&nbsp;risk&nbsp;of&nbsp;the&nbsp;user.</span></div></li>
<li><div class="src-line"><a name="a23"></a><span class="src-comm">//</span></div></li>
<li><div class="src-line"><a name="a24"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a25"></a><span class="src-comm">//&nbsp;$Id:&nbsp;pclzip.lib.php,v&nbsp;1.60&nbsp;2009/09/30&nbsp;21:01:04&nbsp;vblavet&nbsp;Exp&nbsp;$</span></div></li>
<li><div class="src-line"><a name="a26"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a27"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a28"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Constants</span></div></li>
<li><div class="src-line"><a name="a29"></a>&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PCLZIP_READ_BLOCK_SIZE'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a30"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_READ_BLOCK_SIZE'</span><span class="src-sym">,&nbsp;</span><span class="src-num">2048&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a31"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a32"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a33"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;File&nbsp;list&nbsp;separator</span></div></li>
<li><div class="src-line"><a name="a34"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;In&nbsp;version&nbsp;1.x&nbsp;of&nbsp;PclZip,&nbsp;the&nbsp;separator&nbsp;for&nbsp;file&nbsp;list&nbsp;is&nbsp;a&nbsp;space</span></div></li>
<li><div class="src-line"><a name="a35"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;(which&nbsp;is&nbsp;not&nbsp;a&nbsp;very&nbsp;smart&nbsp;choice,&nbsp;specifically&nbsp;for&nbsp;windows&nbsp;paths&nbsp;!).</span></div></li>
<li><div class="src-line"><a name="a36"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;A&nbsp;better&nbsp;separator&nbsp;should&nbsp;be&nbsp;a&nbsp;comma&nbsp;(,).&nbsp;This&nbsp;constant&nbsp;gives&nbsp;you&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a37"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;abilty&nbsp;to&nbsp;change&nbsp;that.</span></div></li>
<li><div class="src-line"><a name="a38"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;However&nbsp;notice&nbsp;that&nbsp;changing&nbsp;this&nbsp;value,&nbsp;may&nbsp;have&nbsp;impact&nbsp;on&nbsp;existing</span></div></li>
<li><div class="src-line"><a name="a39"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;scripts,&nbsp;using&nbsp;space&nbsp;separated&nbsp;filenames.</span></div></li>
<li><div class="src-line"><a name="a40"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Recommanded&nbsp;values&nbsp;for&nbsp;compatibility&nbsp;with&nbsp;older&nbsp;versions&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a41"></a>&nbsp;&nbsp;<span class="src-comm">//define(&nbsp;'PCLZIP_SEPARATOR',&nbsp;'&nbsp;'&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a42"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Recommanded&nbsp;values&nbsp;for&nbsp;smart&nbsp;separation&nbsp;of&nbsp;filenames.</span></div></li>
<li><div class="src-line"><a name="a43"></a>&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PCLZIP_SEPARATOR'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a44"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_SEPARATOR'</span><span class="src-sym">,&nbsp;</span><span class="src-str">','&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a45"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a46"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a47"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;configuration</span></div></li>
<li><div class="src-line"><a name="a48"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;0&nbsp;:&nbsp;PclZip&nbsp;Class&nbsp;integrated&nbsp;error&nbsp;handling</span></div></li>
<li><div class="src-line"><a name="a49"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;1&nbsp;:&nbsp;PclError&nbsp;external&nbsp;library&nbsp;error&nbsp;handling.&nbsp;By&nbsp;enabling&nbsp;this</span></div></li>
<li><div class="src-line"><a name="a50"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;you&nbsp;must&nbsp;ensure&nbsp;that&nbsp;you&nbsp;have&nbsp;included&nbsp;PclError&nbsp;library.</span></div></li>
<li><div class="src-line"><a name="a51"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;[2,...]&nbsp;:&nbsp;reserved&nbsp;for&nbsp;futur&nbsp;use</span></div></li>
<li><div class="src-line"><a name="a52"></a>&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PCLZIP_ERROR_EXTERNAL'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a53"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERROR_EXTERNAL'</span><span class="src-sym">,&nbsp;</span><span class="src-num">0&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a54"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a55"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a56"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Optional&nbsp;static&nbsp;temporary&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a57"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;By&nbsp;default&nbsp;temporary&nbsp;files&nbsp;are&nbsp;generated&nbsp;in&nbsp;the&nbsp;script&nbsp;current</span></div></li>
<li><div class="src-line"><a name="a58"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path.</span></div></li>
<li><div class="src-line"><a name="a59"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;defined&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a60"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;MUST&nbsp;BE&nbsp;terminated&nbsp;by&nbsp;a&nbsp;'/'.</span></div></li>
<li><div class="src-line"><a name="a61"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;MUST&nbsp;be&nbsp;a&nbsp;valid,&nbsp;already&nbsp;created&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a62"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Samples&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a63"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;define(&nbsp;'PCLZIP_TEMPORARY_DIR',&nbsp;'/temp/'&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a64"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;define(&nbsp;'PCLZIP_TEMPORARY_DIR',&nbsp;'C:/Temp/'&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a65"></a>&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PCLZIP_TEMPORARY_DIR'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a66"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_TEMPORARY_DIR'</span><span class="src-sym">,&nbsp;</span><span class="src-str">''&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a67"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a68"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a69"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Optional&nbsp;threshold&nbsp;ratio&nbsp;for&nbsp;use&nbsp;of&nbsp;temporary&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a70"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pclzip&nbsp;sense&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;file&nbsp;to&nbsp;add/extract&nbsp;and&nbsp;decide&nbsp;to</span></div></li>
<li><div class="src-line"><a name="a71"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;use&nbsp;or&nbsp;not&nbsp;temporary&nbsp;file.&nbsp;The&nbsp;algorythm&nbsp;is&nbsp;looking&nbsp;for&nbsp;</span></div></li>
<li><div class="src-line"><a name="a72"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memory_limit&nbsp;of&nbsp;PHP&nbsp;and&nbsp;apply&nbsp;a&nbsp;ratio.</span></div></li>
<li><div class="src-line"><a name="a73"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;threshold&nbsp;=&nbsp;memory_limit&nbsp;*&nbsp;ratio.</span></div></li>
<li><div class="src-line"><a name="a74"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recommended&nbsp;values&nbsp;are&nbsp;under&nbsp;0.5.&nbsp;Default&nbsp;0.47.</span></div></li>
<li><div class="src-line"><a name="a75"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Samples&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a76"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;define(&nbsp;'PCLZIP_TEMPORARY_FILE_RATIO',&nbsp;0.5&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a77"></a>&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PCLZIP_TEMPORARY_FILE_RATIO'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a78"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_TEMPORARY_FILE_RATIO'</span><span class="src-sym">,&nbsp;</span><span class="src-num">0.47&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a79"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a80"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a81"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a82"></a><span class="src-comm">//&nbsp;*****&nbsp;UNDER&nbsp;THIS&nbsp;LINE&nbsp;NOTHING&nbsp;NEEDS&nbsp;TO&nbsp;BE&nbsp;MODIFIED&nbsp;*****</span></div></li>
<li><div class="src-line"><a name="a83"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a84"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a85"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Global&nbsp;variables</span></div></li>
<li><div class="src-line"><a name="a86"></a>&nbsp;&nbsp;<span class="src-var">$g_pclzip_version&nbsp;</span>=&nbsp;<span class="src-str">&quot;2.8.2&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a87"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a88"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;codes</span></div></li>
<li><div class="src-line"><a name="a89"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-1&nbsp;:&nbsp;Unable&nbsp;to&nbsp;open&nbsp;file&nbsp;in&nbsp;binary&nbsp;write&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a90"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-2&nbsp;:&nbsp;Unable&nbsp;to&nbsp;open&nbsp;file&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a91"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-3&nbsp;:&nbsp;Invalid&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a92"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-4&nbsp;:&nbsp;File&nbsp;does&nbsp;not&nbsp;exist</span></div></li>
<li><div class="src-line"><a name="a93"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-5&nbsp;:&nbsp;Filename&nbsp;is&nbsp;too&nbsp;long&nbsp;(max.&nbsp;255)</span></div></li>
<li><div class="src-line"><a name="a94"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-6&nbsp;:&nbsp;Not&nbsp;a&nbsp;valid&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a95"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-7&nbsp;:&nbsp;Invalid&nbsp;extracted&nbsp;file&nbsp;size</span></div></li>
<li><div class="src-line"><a name="a96"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-8&nbsp;:&nbsp;Unable&nbsp;to&nbsp;create&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a97"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-9&nbsp;:&nbsp;Invalid&nbsp;archive&nbsp;extension</span></div></li>
<li><div class="src-line"><a name="a98"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;-10&nbsp;:&nbsp;Invalid&nbsp;archive&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a99"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;-11&nbsp;:&nbsp;Unable&nbsp;to&nbsp;delete&nbsp;file&nbsp;(unlink)</span></div></li>
<li><div class="src-line"><a name="a100"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;-12&nbsp;:&nbsp;Unable&nbsp;to&nbsp;rename&nbsp;file&nbsp;(rename)</span></div></li>
<li><div class="src-line"><a name="a101"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;-13&nbsp;:&nbsp;Invalid&nbsp;header&nbsp;checksum</span></div></li>
<li><div class="src-line"><a name="a102"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;-14&nbsp;:&nbsp;Invalid&nbsp;archive&nbsp;size</span></div></li>
<li><div class="src-line"><a name="a103"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_USER_ABORTED'</span><span class="src-sym">,&nbsp;</span><span class="src-num">2&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a104"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_NO_ERROR'</span><span class="src-sym">,&nbsp;</span><span class="src-num">0&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a105"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_WRITE_OPEN_FAIL'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a106"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_READ_OPEN_FAIL'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">2&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a107"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_INVALID_PARAMETER'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">3&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a108"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_MISSING_FILE'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">4&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a109"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_FILENAME_TOO_LONG'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">5&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a110"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_INVALID_ZIP'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">6&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a111"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_BAD_EXTRACTED_FILE'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">7&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a112"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_DIR_CREATE_FAIL'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">8&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a113"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_BAD_EXTENSION'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">9&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a114"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_BAD_FORMAT'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">10&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a115"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_DELETE_FILE_FAIL'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">11&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a116"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_RENAME_FILE_FAIL'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">12&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a117"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_BAD_CHECKSUM'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">13&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a118"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_INVALID_ARCHIVE_ZIP'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">14&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a119"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_MISSING_OPTION_VALUE'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">15&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a120"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_INVALID_OPTION_VALUE'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">16&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a121"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_ALREADY_A_DIRECTORY'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">17&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a122"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_UNSUPPORTED_COMPRESSION'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">18&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a123"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">19&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a124"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">20&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a125"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ERR_DIRECTORY_RESTRICTION'</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">21&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a126"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a127"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Options&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a128"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_PATH'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77001&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a129"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_ADD_PATH'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77002&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a130"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_REMOVE_PATH'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77003&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a131"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_REMOVE_ALL_PATH'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77004&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a132"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_SET_CHMOD'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77005&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a133"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_EXTRACT_AS_STRING'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77006&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a134"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_NO_COMPRESSION'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77007&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a135"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_BY_NAME'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77008&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a136"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_BY_INDEX'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77009&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a137"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_BY_EREG'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77010&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a138"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_BY_PREG'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77011&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a139"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_COMMENT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77012&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a140"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_ADD_COMMENT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77013&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a141"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_PREPEND_COMMENT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77014&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a142"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_EXTRACT_IN_OUTPUT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77015&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a143"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_REPLACE_NEWER'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77016&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a144"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_STOP_ON_ERROR'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77017&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a145"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Having&nbsp;big&nbsp;trouble&nbsp;with&nbsp;crypt.&nbsp;Need&nbsp;to&nbsp;multiply&nbsp;2&nbsp;long&nbsp;int</span></div></li>
<li><div class="src-line"><a name="a146"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;which&nbsp;is&nbsp;not&nbsp;correctly&nbsp;supported&nbsp;by&nbsp;PHP&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a147"></a>&nbsp;&nbsp;<span class="src-comm">//define(&nbsp;'PCLZIP_OPT_CRYPT',&nbsp;77018&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a148"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_EXTRACT_DIR_RESTRICTION'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77019&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a149"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_TEMP_FILE_THRESHOLD'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77020&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a150"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_ADD_TEMP_FILE_THRESHOLD'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77020&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-comm">//&nbsp;alias</span></div></li>
<li><div class="src-line"><a name="a151"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_TEMP_FILE_ON'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77021&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a152"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_ADD_TEMP_FILE_ON'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77021&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-comm">//&nbsp;alias</span></div></li>
<li><div class="src-line"><a name="a153"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_TEMP_FILE_OFF'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77022&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a154"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_OPT_ADD_TEMP_FILE_OFF'</span><span class="src-sym">,&nbsp;</span><span class="src-num">77022&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-comm">//&nbsp;alias</span></div></li>
<li><div class="src-line"><a name="a155"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a156"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;File&nbsp;description&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a157"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ATT_FILE_NAME'</span><span class="src-sym">,&nbsp;</span><span class="src-num">79001&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a158"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ATT_FILE_NEW_SHORT_NAME'</span><span class="src-sym">,&nbsp;</span><span class="src-num">79002&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a159"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ATT_FILE_NEW_FULL_NAME'</span><span class="src-sym">,&nbsp;</span><span class="src-num">79003&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a160"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ATT_FILE_MTIME'</span><span class="src-sym">,&nbsp;</span><span class="src-num">79004&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a161"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ATT_FILE_CONTENT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">79005&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a162"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_ATT_FILE_COMMENT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">79006&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a163"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a164"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;backs&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a165"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_CB_PRE_EXTRACT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">78001&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a166"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_CB_POST_EXTRACT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">78002&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a167"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_CB_PRE_ADD'</span><span class="src-sym">,&nbsp;</span><span class="src-num">78003&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a168"></a>&nbsp;&nbsp;<a href="http://www.php.net/define">define</a><span class="src-sym">(&nbsp;</span><span class="src-str">'PCLZIP_CB_POST_ADD'</span><span class="src-sym">,&nbsp;</span><span class="src-num">78004&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a169"></a>&nbsp;&nbsp;<span class="src-comm">/*&nbsp;For&nbsp;futur&nbsp;use</span></div></li>
<li><div class="src-line"><a name="a170"></a><span class="src-comm">&nbsp;&nbsp;define(&nbsp;'PCLZIP_CB_PRE_LIST',&nbsp;78005&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a171"></a><span class="src-comm">&nbsp;&nbsp;define(&nbsp;'PCLZIP_CB_POST_LIST',&nbsp;78006&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a172"></a><span class="src-comm">&nbsp;&nbsp;define(&nbsp;'PCLZIP_CB_PRE_DELETE',&nbsp;78007&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a173"></a><span class="src-comm">&nbsp;&nbsp;define(&nbsp;'PCLZIP_CB_POST_DELETE',&nbsp;78008&nbsp;);</span></div></li>
<li><div class="src-line"><a name="a174"></a><span class="src-comm">&nbsp;&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a175"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a176"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a177"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Class&nbsp;:&nbsp;PclZip</span></div></li>
<li><div class="src-line"><a name="a178"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a179"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PclZip&nbsp;is&nbsp;the&nbsp;class&nbsp;that&nbsp;represent&nbsp;a&nbsp;Zip&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a180"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;public&nbsp;methods&nbsp;allow&nbsp;the&nbsp;manipulation&nbsp;of&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a181"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Attributes&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a182"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Attributes&nbsp;must&nbsp;not&nbsp;be&nbsp;accessed&nbsp;directly.</span></div></li>
<li><div class="src-line"><a name="a183"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Methods&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a184"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PclZip()&nbsp;:&nbsp;Object&nbsp;creator</span></div></li>
<li><div class="src-line"><a name="a185"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;create()&nbsp;:&nbsp;Creates&nbsp;the&nbsp;Zip&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a186"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;listContent()&nbsp;:&nbsp;List&nbsp;the&nbsp;content&nbsp;of&nbsp;the&nbsp;Zip&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a187"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;extract()&nbsp;:&nbsp;Extract&nbsp;the&nbsp;content&nbsp;of&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a188"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;properties()&nbsp;:&nbsp;List&nbsp;the&nbsp;properties&nbsp;of&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a189"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a190"></a>&nbsp;&nbsp;<span class="src-key">class&nbsp;</span><a href="../PHPExcel/PclZip.html">PclZip</a></div></li>
<li><div class="src-line"><a name="a191"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a192"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Filename&nbsp;of&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a193"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">var&nbsp;</span><a href="../PHPExcel/PclZip.html#var$zipname">$zipname</a>&nbsp;=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a194"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a195"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;File&nbsp;descriptor&nbsp;of&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a196"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">var&nbsp;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">$zip_fd</a>&nbsp;=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a197"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a198"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Internal&nbsp;error&nbsp;handling</span></div></li>
<li><div class="src-line"><a name="a199"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">var&nbsp;</span><a href="../PHPExcel/PclZip.html#var$error_code">$error_code</a>&nbsp;=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a200"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">var&nbsp;</span><a href="../PHPExcel/PclZip.html#var$error_string">$error_string</a>&nbsp;=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a201"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a202"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Current&nbsp;status&nbsp;of&nbsp;the&nbsp;magic_quotes_runtime</span></div></li>
<li><div class="src-line"><a name="a203"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;This&nbsp;value&nbsp;store&nbsp;the&nbsp;php&nbsp;configuration&nbsp;for&nbsp;magic_quotes</span></div></li>
<li><div class="src-line"><a name="a204"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;The&nbsp;class&nbsp;can&nbsp;then&nbsp;disable&nbsp;the&nbsp;magic_quotes&nbsp;and&nbsp;reset&nbsp;it&nbsp;after</span></div></li>
<li><div class="src-line"><a name="a205"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">var&nbsp;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">$magic_quotes_status</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a206"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a207"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a208"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;PclZip()</span></div></li>
<li><div class="src-line"><a name="a209"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a210"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Creates&nbsp;a&nbsp;PclZip&nbsp;object&nbsp;and&nbsp;set&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;associated&nbsp;Zip&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a211"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;filename.</span></div></li>
<li><div class="src-line"><a name="a212"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Note&nbsp;that&nbsp;no&nbsp;real&nbsp;action&nbsp;is&nbsp;taken,&nbsp;if&nbsp;the&nbsp;archive&nbsp;does&nbsp;not&nbsp;exist&nbsp;it&nbsp;is&nbsp;not</span></div></li>
<li><div class="src-line"><a name="a213"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;created.&nbsp;Use&nbsp;create()&nbsp;for&nbsp;that.</span></div></li>
<li><div class="src-line"><a name="a214"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a215"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">(</span><span class="src-var">$p_zipname</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a216"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a217"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a218"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Tests&nbsp;the&nbsp;zlib</span></div></li>
<li><div class="src-line"><a name="a219"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'gzopen'</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a220"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a221"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">die</span><span class="src-sym">(</span><span class="src-str">'Abort&nbsp;'</span>.<a href="http://www.php.net/basename">basename</a><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span>.<span class="src-str">'&nbsp;:&nbsp;Missing&nbsp;zlib&nbsp;extensions'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a222"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a223"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a224"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a225"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>&nbsp;=&nbsp;<span class="src-var">$p_zipname</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a226"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a227"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">magic_quotes_status</a>&nbsp;=&nbsp;-<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a228"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a229"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a230"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a231"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a232"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a233"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a234"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a235"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a236"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;create($p_filelist,&nbsp;$p_add_dir=&quot;&quot;,&nbsp;$p_remove_dir=&quot;&quot;)</span></div></li>
<li><div class="src-line"><a name="a237"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;create($p_filelist,&nbsp;$p_option,&nbsp;$p_option_value,&nbsp;...)</span></div></li>
<li><div class="src-line"><a name="a238"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a239"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;supports&nbsp;two&nbsp;different&nbsp;synopsis.&nbsp;The&nbsp;first&nbsp;one&nbsp;is&nbsp;historical.</span></div></li>
<li><div class="src-line"><a name="a240"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;creates&nbsp;a&nbsp;Zip&nbsp;Archive.&nbsp;The&nbsp;Zip&nbsp;file&nbsp;is&nbsp;created&nbsp;in&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a241"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;filesystem.&nbsp;The&nbsp;files&nbsp;and&nbsp;directories&nbsp;indicated&nbsp;in&nbsp;$p_filelist</span></div></li>
<li><div class="src-line"><a name="a242"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;are&nbsp;added&nbsp;in&nbsp;the&nbsp;archive.&nbsp;See&nbsp;the&nbsp;parameters&nbsp;description&nbsp;for&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a243"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;supported&nbsp;format&nbsp;of&nbsp;$p_filelist.</span></div></li>
<li><div class="src-line"><a name="a244"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;When&nbsp;a&nbsp;directory&nbsp;is&nbsp;in&nbsp;the&nbsp;list,&nbsp;the&nbsp;directory&nbsp;and&nbsp;its&nbsp;content&nbsp;is&nbsp;added</span></div></li>
<li><div class="src-line"><a name="a245"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a246"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;In&nbsp;this&nbsp;synopsis,&nbsp;the&nbsp;function&nbsp;takes&nbsp;an&nbsp;optional&nbsp;variable&nbsp;list&nbsp;of</span></div></li>
<li><div class="src-line"><a name="a247"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;options.&nbsp;See&nbsp;bellow&nbsp;the&nbsp;supported&nbsp;options.</span></div></li>
<li><div class="src-line"><a name="a248"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a249"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_filelist&nbsp;:&nbsp;An&nbsp;array&nbsp;containing&nbsp;file&nbsp;or&nbsp;directory&nbsp;names,&nbsp;or</span></div></li>
<li><div class="src-line"><a name="a250"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;containing&nbsp;one&nbsp;filename&nbsp;or&nbsp;one&nbsp;directory&nbsp;name,&nbsp;or</span></div></li>
<li><div class="src-line"><a name="a251"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;containing&nbsp;a&nbsp;list&nbsp;of&nbsp;filenames&nbsp;and/or&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a252"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;names&nbsp;separated&nbsp;by&nbsp;spaces.</span></div></li>
<li><div class="src-line"><a name="a253"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_add_dir&nbsp;:&nbsp;A&nbsp;path&nbsp;to&nbsp;add&nbsp;before&nbsp;the&nbsp;real&nbsp;path&nbsp;of&nbsp;the&nbsp;archived&nbsp;file,</span></div></li>
<li><div class="src-line"><a name="a254"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;order&nbsp;to&nbsp;have&nbsp;it&nbsp;memorized&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a255"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_remove_dir&nbsp;:&nbsp;A&nbsp;path&nbsp;to&nbsp;remove&nbsp;from&nbsp;the&nbsp;real&nbsp;path&nbsp;of&nbsp;the&nbsp;file&nbsp;to&nbsp;archive,</span></div></li>
<li><div class="src-line"><a name="a256"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;order&nbsp;to&nbsp;have&nbsp;a&nbsp;shorter&nbsp;path&nbsp;memorized&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a257"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When&nbsp;$p_add_dir&nbsp;and&nbsp;$p_remove_dir&nbsp;are&nbsp;set,&nbsp;$p_remove_dir</span></div></li>
<li><div class="src-line"><a name="a258"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is&nbsp;removed&nbsp;first,&nbsp;before&nbsp;$p_add_dir&nbsp;is&nbsp;added.</span></div></li>
<li><div class="src-line"><a name="a259"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Options&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a260"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_ADD_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a261"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a262"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_ALL_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a263"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_COMMENT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a264"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_PRE_ADD&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a265"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_POST_ADD&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a266"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a267"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure,</span></div></li>
<li><div class="src-line"><a name="a268"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;list&nbsp;of&nbsp;the&nbsp;added&nbsp;files,&nbsp;with&nbsp;a&nbsp;status&nbsp;of&nbsp;the&nbsp;add&nbsp;action.</span></div></li>
<li><div class="src-line"><a name="a269"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;(see&nbsp;PclZip::listContent()&nbsp;for&nbsp;list&nbsp;entry&nbsp;format)</span></div></li>
<li><div class="src-line"><a name="a270"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a271"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodcreate">create</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a272"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a273"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a274"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a275"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a276"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a277"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a278"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;default&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a279"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a280"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_NO_COMPRESSION">PCLZIP_OPT_NO_COMPRESSION</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-id">FALSE</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a281"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a282"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;variable&nbsp;options&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a283"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_num_args">func_num_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a284"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a285"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a286"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a287"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a288"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_arg_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a289"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a290"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;from&nbsp;the&nbsp;options&nbsp;list&nbsp;the&nbsp;first&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a291"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/array_shift">array_shift</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a292"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size</span>--<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a293"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a294"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;first&nbsp;arg</span></div></li>
<li><div class="src-line"><a name="a295"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/is_integer">is_integer</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]&nbsp;</span>&gt;&nbsp;<span class="src-num">77000</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a296"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a297"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Parse&nbsp;the&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a298"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivParseOptions">privParseOptions</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a299"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a300"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a301"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a302"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_ADD">PCLZIP_CB_PRE_ADD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a303"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_ADD">PCLZIP_CB_POST_ADD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a304"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_NO_COMPRESSION">PCLZIP_OPT_NO_COMPRESSION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a305"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a306"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a307"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a308"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a309"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//,&nbsp;PCLZIP_OPT_CRYPT&nbsp;=&gt;&nbsp;'optional'</span></div></li>
<li><div class="src-line"><a name="a310"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a311"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a312"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a313"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a314"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a315"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a316"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;2&nbsp;args</span></div></li>
<li><div class="src-line"><a name="a317"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;we&nbsp;need&nbsp;to&nbsp;support&nbsp;the&nbsp;first&nbsp;historic&nbsp;synopsis&nbsp;of&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a318"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;method.</span></div></li>
<li><div class="src-line"><a name="a319"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a320"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a321"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;first&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a322"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a323"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a324"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;the&nbsp;optional&nbsp;second&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a325"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a326"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a327"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a328"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a329"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a330"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Invalid&nbsp;number&nbsp;/&nbsp;type&nbsp;of&nbsp;arguments&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a331"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a332"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a333"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a334"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a335"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a336"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;default&nbsp;option&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a337"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOptionDefaultThreshold">privOptionDefaultThreshold</a><span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a338"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a339"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Init</span></div></li>
<li><div class="src-line"><a name="a340"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_string_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a341"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_att_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a342"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_filedescr_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a343"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_result_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a344"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a345"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_filelist&nbsp;is&nbsp;really&nbsp;an&nbsp;array</span></div></li>
<li><div class="src-line"><a name="a346"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a347"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a348"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;first&nbsp;element&nbsp;is&nbsp;also&nbsp;an&nbsp;array</span></div></li>
<li><div class="src-line"><a name="a349"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;will&nbsp;mean&nbsp;that&nbsp;this&nbsp;is&nbsp;a&nbsp;file&nbsp;description&nbsp;entry</span></div></li>
<li><div class="src-line"><a name="a350"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a351"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_att_list&nbsp;</span>=&nbsp;<span class="src-var">$p_filelist</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a352"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a353"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a354"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;The&nbsp;list&nbsp;is&nbsp;a&nbsp;list&nbsp;of&nbsp;string&nbsp;names</span></div></li>
<li><div class="src-line"><a name="a355"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a356"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_string_list&nbsp;</span>=&nbsp;<span class="src-var">$p_filelist</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a357"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a358"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a359"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a360"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_filelist&nbsp;is&nbsp;a&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a361"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a362"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;a&nbsp;list&nbsp;from&nbsp;the&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a363"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_string_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_SEPARATOR">PCLZIP_SEPARATOR</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_filelist</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a364"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a365"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a366"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Invalid&nbsp;variable&nbsp;type&nbsp;for&nbsp;$p_filelist</span></div></li>
<li><div class="src-line"><a name="a367"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a368"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;variable&nbsp;type&nbsp;p_filelist&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a369"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a370"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a371"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a372"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reformat&nbsp;the&nbsp;string&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a373"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_string_list</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a374"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">foreach&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_string_list&nbsp;</span><span class="src-key">as&nbsp;</span><span class="src-var">$v_string</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a375"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_string&nbsp;</span>!=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a376"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_att_list</span><span class="src-sym">[</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NAME">PCLZIP_ATT_FILE_NAME</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_string</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a377"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a378"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a379"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a380"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a381"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a382"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a383"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;For&nbsp;each&nbsp;file&nbsp;in&nbsp;the&nbsp;list&nbsp;check&nbsp;the&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a384"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_supported_attributes</span></div></li>
<li><div class="src-line"><a name="a385"></a>&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NAME">PCLZIP_ATT_FILE_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'mandatory'</span></div></li>
<li><div class="src-line"><a name="a386"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NEW_SHORT_NAME">PCLZIP_ATT_FILE_NEW_SHORT_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a387"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NEW_FULL_NAME">PCLZIP_ATT_FILE_NEW_FULL_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a388"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_MTIME">PCLZIP_ATT_FILE_MTIME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a389"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_CONTENT">PCLZIP_ATT_FILE_CONTENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a390"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_COMMENT">PCLZIP_ATT_FILE_COMMENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a391"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a392"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">foreach&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_att_list&nbsp;</span><span class="src-key">as&nbsp;</span><span class="src-var">$v_entry</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a393"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivFileDescrParseAtt">privFileDescrParseAtt</a><span class="src-sym">(</span><span class="src-var">$v_entry</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a394"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_filedescr_list</span><span class="src-sym">[</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a395"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a396"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_supported_attributes</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a397"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a398"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a399"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a400"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a401"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a402"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Expand&nbsp;the&nbsp;filelist&nbsp;(expand&nbsp;directories)</span></div></li>
<li><div class="src-line"><a name="a403"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivFileDescrExpand">privFileDescrExpand</a><span class="src-sym">(</span><span class="src-var">$v_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a404"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a405"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a406"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a407"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a408"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;create&nbsp;fct</span></div></li>
<li><div class="src-line"><a name="a409"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCreate">privCreate</a><span class="src-sym">(</span><span class="src-var">$v_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a410"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a411"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a412"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a413"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a414"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a415"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a416"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a417"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a418"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a419"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a420"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a421"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;add($p_filelist,&nbsp;$p_add_dir=&quot;&quot;,&nbsp;$p_remove_dir=&quot;&quot;)</span></div></li>
<li><div class="src-line"><a name="a422"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;add($p_filelist,&nbsp;$p_option,&nbsp;$p_option_value,&nbsp;...)</span></div></li>
<li><div class="src-line"><a name="a423"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a424"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;supports&nbsp;two&nbsp;synopsis.&nbsp;The&nbsp;first&nbsp;one&nbsp;is&nbsp;historical.</span></div></li>
<li><div class="src-line"><a name="a425"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;methods&nbsp;add&nbsp;the&nbsp;list&nbsp;of&nbsp;files&nbsp;in&nbsp;an&nbsp;existing&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a426"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;a&nbsp;file&nbsp;with&nbsp;the&nbsp;same&nbsp;name&nbsp;already&nbsp;exists,&nbsp;it&nbsp;is&nbsp;added&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a427"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;archive,&nbsp;the&nbsp;first&nbsp;one&nbsp;is&nbsp;still&nbsp;present.</span></div></li>
<li><div class="src-line"><a name="a428"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;the&nbsp;archive&nbsp;does&nbsp;not&nbsp;exist,&nbsp;it&nbsp;is&nbsp;created.</span></div></li>
<li><div class="src-line"><a name="a429"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a430"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_filelist&nbsp;:&nbsp;An&nbsp;array&nbsp;containing&nbsp;file&nbsp;or&nbsp;directory&nbsp;names,&nbsp;or</span></div></li>
<li><div class="src-line"><a name="a431"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;containing&nbsp;one&nbsp;filename&nbsp;or&nbsp;one&nbsp;directory&nbsp;name,&nbsp;or</span></div></li>
<li><div class="src-line"><a name="a432"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;containing&nbsp;a&nbsp;list&nbsp;of&nbsp;filenames&nbsp;and/or&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a433"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;names&nbsp;separated&nbsp;by&nbsp;spaces.</span></div></li>
<li><div class="src-line"><a name="a434"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_add_dir&nbsp;:&nbsp;A&nbsp;path&nbsp;to&nbsp;add&nbsp;before&nbsp;the&nbsp;real&nbsp;path&nbsp;of&nbsp;the&nbsp;archived&nbsp;file,</span></div></li>
<li><div class="src-line"><a name="a435"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;order&nbsp;to&nbsp;have&nbsp;it&nbsp;memorized&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a436"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_remove_dir&nbsp;:&nbsp;A&nbsp;path&nbsp;to&nbsp;remove&nbsp;from&nbsp;the&nbsp;real&nbsp;path&nbsp;of&nbsp;the&nbsp;file&nbsp;to&nbsp;archive,</span></div></li>
<li><div class="src-line"><a name="a437"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;order&nbsp;to&nbsp;have&nbsp;a&nbsp;shorter&nbsp;path&nbsp;memorized&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a438"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When&nbsp;$p_add_dir&nbsp;and&nbsp;$p_remove_dir&nbsp;are&nbsp;set,&nbsp;$p_remove_dir</span></div></li>
<li><div class="src-line"><a name="a439"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is&nbsp;removed&nbsp;first,&nbsp;before&nbsp;$p_add_dir&nbsp;is&nbsp;added.</span></div></li>
<li><div class="src-line"><a name="a440"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Options&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a441"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_ADD_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a442"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a443"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_ALL_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a444"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_COMMENT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a445"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_ADD_COMMENT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a446"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_PREPEND_COMMENT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a447"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_PRE_ADD&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a448"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_POST_ADD&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a449"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a450"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure,</span></div></li>
<li><div class="src-line"><a name="a451"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;list&nbsp;of&nbsp;the&nbsp;added&nbsp;files,&nbsp;with&nbsp;a&nbsp;status&nbsp;of&nbsp;the&nbsp;add&nbsp;action.</span></div></li>
<li><div class="src-line"><a name="a452"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;(see&nbsp;PclZip::listContent()&nbsp;for&nbsp;list&nbsp;entry&nbsp;format)</span></div></li>
<li><div class="src-line"><a name="a453"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a454"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodadd">add</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a455"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a456"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a457"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a458"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a459"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a460"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a461"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;default&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a462"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a463"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_NO_COMPRESSION">PCLZIP_OPT_NO_COMPRESSION</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-id">FALSE</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a464"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a465"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;variable&nbsp;options&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a466"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_num_args">func_num_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a467"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a468"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a469"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a470"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a471"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_arg_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a472"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a473"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;form&nbsp;the&nbsp;options&nbsp;list&nbsp;the&nbsp;first&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a474"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/array_shift">array_shift</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a475"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size</span>--<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a476"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a477"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;first&nbsp;arg</span></div></li>
<li><div class="src-line"><a name="a478"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/is_integer">is_integer</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]&nbsp;</span>&gt;&nbsp;<span class="src-num">77000</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a479"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a480"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Parse&nbsp;the&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a481"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivParseOptions">privParseOptions</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a482"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a483"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a484"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a485"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_ADD">PCLZIP_CB_PRE_ADD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a486"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_ADD">PCLZIP_CB_POST_ADD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a487"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_NO_COMPRESSION">PCLZIP_OPT_NO_COMPRESSION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a488"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a489"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_COMMENT">PCLZIP_OPT_ADD_COMMENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a490"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PREPEND_COMMENT">PCLZIP_OPT_PREPEND_COMMENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a491"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a492"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a493"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a494"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//,&nbsp;PCLZIP_OPT_CRYPT&nbsp;=&gt;&nbsp;'optional'</span></div></li>
<li><div class="src-line"><a name="a495"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a496"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a497"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a498"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a499"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a500"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a501"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;2&nbsp;args</span></div></li>
<li><div class="src-line"><a name="a502"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;we&nbsp;need&nbsp;to&nbsp;support&nbsp;the&nbsp;first&nbsp;historic&nbsp;synopsis&nbsp;of&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a503"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;method.</span></div></li>
<li><div class="src-line"><a name="a504"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a505"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a506"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;first&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a507"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_add_path&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a508"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a509"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;the&nbsp;optional&nbsp;second&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a510"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a511"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a512"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a513"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a514"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a515"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;number&nbsp;/&nbsp;type&nbsp;of&nbsp;arguments&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a516"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a517"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a518"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a519"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a520"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a521"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a522"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a523"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;default&nbsp;option&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a524"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOptionDefaultThreshold">privOptionDefaultThreshold</a><span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a525"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a526"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Init</span></div></li>
<li><div class="src-line"><a name="a527"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_string_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a528"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_att_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a529"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_filedescr_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a530"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_result_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a531"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a532"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_filelist&nbsp;is&nbsp;really&nbsp;an&nbsp;array</span></div></li>
<li><div class="src-line"><a name="a533"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a534"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a535"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;first&nbsp;element&nbsp;is&nbsp;also&nbsp;an&nbsp;array</span></div></li>
<li><div class="src-line"><a name="a536"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;will&nbsp;mean&nbsp;that&nbsp;this&nbsp;is&nbsp;a&nbsp;file&nbsp;description&nbsp;entry</span></div></li>
<li><div class="src-line"><a name="a537"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a538"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_att_list&nbsp;</span>=&nbsp;<span class="src-var">$p_filelist</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a539"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a540"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a541"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;The&nbsp;list&nbsp;is&nbsp;a&nbsp;list&nbsp;of&nbsp;string&nbsp;names</span></div></li>
<li><div class="src-line"><a name="a542"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a543"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_string_list&nbsp;</span>=&nbsp;<span class="src-var">$p_filelist</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a544"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a545"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a546"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a547"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_filelist&nbsp;is&nbsp;a&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a548"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a549"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;a&nbsp;list&nbsp;from&nbsp;the&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a550"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_string_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_SEPARATOR">PCLZIP_SEPARATOR</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_filelist</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a551"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a552"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a553"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Invalid&nbsp;variable&nbsp;type&nbsp;for&nbsp;$p_filelist</span></div></li>
<li><div class="src-line"><a name="a554"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a555"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;variable&nbsp;type&nbsp;'&quot;</span>.<a href="http://www.php.net/gettype">gettype</a><span class="src-sym">(</span><span class="src-var">$p_filelist</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&nbsp;for&nbsp;p_filelist&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a556"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a557"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a558"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a559"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reformat&nbsp;the&nbsp;string&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a560"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_string_list</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a561"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">foreach&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_string_list&nbsp;</span><span class="src-key">as&nbsp;</span><span class="src-var">$v_string</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a562"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_att_list</span><span class="src-sym">[</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NAME">PCLZIP_ATT_FILE_NAME</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_string</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a563"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a564"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a565"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a566"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;For&nbsp;each&nbsp;file&nbsp;in&nbsp;the&nbsp;list&nbsp;check&nbsp;the&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a567"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_supported_attributes</span></div></li>
<li><div class="src-line"><a name="a568"></a>&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NAME">PCLZIP_ATT_FILE_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'mandatory'</span></div></li>
<li><div class="src-line"><a name="a569"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NEW_SHORT_NAME">PCLZIP_ATT_FILE_NEW_SHORT_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a570"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NEW_FULL_NAME">PCLZIP_ATT_FILE_NEW_FULL_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a571"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_MTIME">PCLZIP_ATT_FILE_MTIME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a572"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_CONTENT">PCLZIP_ATT_FILE_CONTENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a573"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_COMMENT">PCLZIP_ATT_FILE_COMMENT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a574"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a575"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">foreach&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_att_list&nbsp;</span><span class="src-key">as&nbsp;</span><span class="src-var">$v_entry</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a576"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivFileDescrParseAtt">privFileDescrParseAtt</a><span class="src-sym">(</span><span class="src-var">$v_entry</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a577"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_filedescr_list</span><span class="src-sym">[</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a578"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a579"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_supported_attributes</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a580"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a581"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a582"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a583"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a584"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a585"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Expand&nbsp;the&nbsp;filelist&nbsp;(expand&nbsp;directories)</span></div></li>
<li><div class="src-line"><a name="a586"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivFileDescrExpand">privFileDescrExpand</a><span class="src-sym">(</span><span class="src-var">$v_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a587"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a588"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a589"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a590"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a591"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;create&nbsp;fct</span></div></li>
<li><div class="src-line"><a name="a592"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivAdd">privAdd</a><span class="src-sym">(</span><span class="src-var">$v_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a593"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a594"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a595"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a596"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a597"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a598"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a599"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a600"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a601"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a602"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a603"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;listContent()</span></div></li>
<li><div class="src-line"><a name="a604"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a605"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;public&nbsp;method,&nbsp;gives&nbsp;the&nbsp;list&nbsp;of&nbsp;the&nbsp;files&nbsp;and&nbsp;directories,&nbsp;with&nbsp;their</span></div></li>
<li><div class="src-line"><a name="a606"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;properties.</span></div></li>
<li><div class="src-line"><a name="a607"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;properties&nbsp;of&nbsp;each&nbsp;entries&nbsp;in&nbsp;the&nbsp;list&nbsp;are&nbsp;(used&nbsp;also&nbsp;in&nbsp;other&nbsp;functions)&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a608"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filename&nbsp;:&nbsp;Name&nbsp;of&nbsp;the&nbsp;file.&nbsp;For&nbsp;a&nbsp;create&nbsp;or&nbsp;add&nbsp;action&nbsp;it&nbsp;is&nbsp;the&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a609"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;given&nbsp;by&nbsp;the&nbsp;user.&nbsp;For&nbsp;an&nbsp;extract&nbsp;function&nbsp;it&nbsp;is&nbsp;the&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a610"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of&nbsp;the&nbsp;extracted&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a611"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stored_filename&nbsp;:&nbsp;Name&nbsp;of&nbsp;the&nbsp;file&nbsp;/&nbsp;directory&nbsp;stored&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a612"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;size&nbsp;:&nbsp;Size&nbsp;of&nbsp;the&nbsp;stored&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a613"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;compressed_size&nbsp;:&nbsp;Size&nbsp;of&nbsp;the&nbsp;file's&nbsp;data&nbsp;compressed&nbsp;in&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a614"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(without&nbsp;the&nbsp;headers&nbsp;overhead)</span></div></li>
<li><div class="src-line"><a name="a615"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mtime&nbsp;:&nbsp;Last&nbsp;known&nbsp;modification&nbsp;date&nbsp;of&nbsp;the&nbsp;file&nbsp;(UNIX&nbsp;timestamp)</span></div></li>
<li><div class="src-line"><a name="a616"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;comment&nbsp;:&nbsp;Comment&nbsp;associated&nbsp;with&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a617"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;folder&nbsp;:&nbsp;true&nbsp;|&nbsp;false</span></div></li>
<li><div class="src-line"><a name="a618"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index&nbsp;:&nbsp;index&nbsp;of&nbsp;the&nbsp;file&nbsp;in&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a619"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;status&nbsp;:&nbsp;status&nbsp;of&nbsp;the&nbsp;action&nbsp;(depending&nbsp;of&nbsp;the&nbsp;action)&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a620"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Values&nbsp;are&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a621"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ok&nbsp;:&nbsp;OK&nbsp;!</span></div></li>
<li><div class="src-line"><a name="a622"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filtered&nbsp;:&nbsp;the&nbsp;file&nbsp;/&nbsp;dir&nbsp;is&nbsp;not&nbsp;extracted&nbsp;(filtered&nbsp;by&nbsp;user)</span></div></li>
<li><div class="src-line"><a name="a623"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;already_a_directory&nbsp;:&nbsp;the&nbsp;file&nbsp;can&nbsp;not&nbsp;be&nbsp;extracted&nbsp;because&nbsp;a</span></div></li>
<li><div class="src-line"><a name="a624"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;directory&nbsp;with&nbsp;the&nbsp;same&nbsp;name&nbsp;already&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a625"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;write_protected&nbsp;:&nbsp;the&nbsp;file&nbsp;can&nbsp;not&nbsp;be&nbsp;extracted&nbsp;because&nbsp;a&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a626"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with&nbsp;the&nbsp;same&nbsp;name&nbsp;already&nbsp;exists&nbsp;and&nbsp;is</span></div></li>
<li><div class="src-line"><a name="a627"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;write&nbsp;protected</span></div></li>
<li><div class="src-line"><a name="a628"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newer_exist&nbsp;:&nbsp;the&nbsp;file&nbsp;was&nbsp;not&nbsp;extracted&nbsp;because&nbsp;a&nbsp;newer&nbsp;file&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a629"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path_creation_fail&nbsp;:&nbsp;the&nbsp;file&nbsp;is&nbsp;not&nbsp;extracted&nbsp;because&nbsp;the&nbsp;folder</span></div></li>
<li><div class="src-line"><a name="a630"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;does&nbsp;not&nbsp;exist&nbsp;and&nbsp;can&nbsp;not&nbsp;be&nbsp;created</span></div></li>
<li><div class="src-line"><a name="a631"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;write_error&nbsp;:&nbsp;the&nbsp;file&nbsp;was&nbsp;not&nbsp;extracted&nbsp;because&nbsp;there&nbsp;was&nbsp;a</span></div></li>
<li><div class="src-line"><a name="a632"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error&nbsp;while&nbsp;writing&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a633"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read_error&nbsp;:&nbsp;the&nbsp;file&nbsp;was&nbsp;not&nbsp;extracted&nbsp;because&nbsp;there&nbsp;was&nbsp;a&nbsp;error</span></div></li>
<li><div class="src-line"><a name="a634"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;reading&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a635"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invalid_header&nbsp;:&nbsp;the&nbsp;file&nbsp;was&nbsp;not&nbsp;extracted&nbsp;because&nbsp;of&nbsp;an&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a636"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;format&nbsp;error&nbsp;(bad&nbsp;file&nbsp;header)</span></div></li>
<li><div class="src-line"><a name="a637"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Note&nbsp;that&nbsp;each&nbsp;time&nbsp;a&nbsp;method&nbsp;can&nbsp;continue&nbsp;operating&nbsp;when&nbsp;there</span></div></li>
<li><div class="src-line"><a name="a638"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;is&nbsp;an&nbsp;action&nbsp;error&nbsp;on&nbsp;a&nbsp;file,&nbsp;the&nbsp;error&nbsp;is&nbsp;only&nbsp;logged&nbsp;in&nbsp;the&nbsp;file&nbsp;status.</span></div></li>
<li><div class="src-line"><a name="a639"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a640"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;an&nbsp;unrecoverable&nbsp;failure,</span></div></li>
<li><div class="src-line"><a name="a641"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;list&nbsp;of&nbsp;the&nbsp;files&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a642"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a643"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodlistContent">listContent</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a644"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a645"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a646"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a647"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a648"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a649"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a650"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a651"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFormat">privCheckFormat</a><span class="src-sym">(</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a652"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a653"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a654"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a655"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;extracting&nbsp;fct</span></div></li>
<li><div class="src-line"><a name="a656"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a657"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivList">privList</a><span class="src-sym">(</span><span class="src-var">$p_list</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a658"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a659"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$p_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a660"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a661"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a662"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a663"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a664"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$p_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a665"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a666"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a667"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a668"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a669"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a670"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;extract($p_path=&quot;./&quot;,&nbsp;$p_remove_path=&quot;&quot;)</span></div></li>
<li><div class="src-line"><a name="a671"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;extract([$p_option,&nbsp;$p_option_value,&nbsp;...])</span></div></li>
<li><div class="src-line"><a name="a672"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a673"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;supports&nbsp;two&nbsp;synopsis.&nbsp;The&nbsp;first&nbsp;one&nbsp;is&nbsp;historical.</span></div></li>
<li><div class="src-line"><a name="a674"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;extract&nbsp;all&nbsp;the&nbsp;files&nbsp;/&nbsp;directories&nbsp;from&nbsp;the&nbsp;archive&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a675"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;folder&nbsp;indicated&nbsp;in&nbsp;$p_path.</span></div></li>
<li><div class="src-line"><a name="a676"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;ignore&nbsp;the&nbsp;'root'&nbsp;part&nbsp;of&nbsp;path&nbsp;of&nbsp;the&nbsp;memorized&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a677"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;you&nbsp;can&nbsp;indicate&nbsp;this&nbsp;in&nbsp;the&nbsp;optional&nbsp;$p_remove_path&nbsp;parameter.</span></div></li>
<li><div class="src-line"><a name="a678"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;By&nbsp;default,&nbsp;if&nbsp;a&nbsp;newer&nbsp;file&nbsp;with&nbsp;the&nbsp;same&nbsp;name&nbsp;already&nbsp;exists,&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a679"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;file&nbsp;is&nbsp;not&nbsp;extracted.</span></div></li>
<li><div class="src-line"><a name="a680"></a>&nbsp;&nbsp;<span class="src-comm">//</span></div></li>
<li><div class="src-line"><a name="a681"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;both&nbsp;PCLZIP_OPT_PATH&nbsp;and&nbsp;PCLZIP_OPT_ADD_PATH&nbsp;aoptions</span></div></li>
<li><div class="src-line"><a name="a682"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;are&nbsp;used,&nbsp;the&nbsp;path&nbsp;indicated&nbsp;in&nbsp;PCLZIP_OPT_ADD_PATH&nbsp;is&nbsp;append</span></div></li>
<li><div class="src-line"><a name="a683"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;path&nbsp;value&nbsp;of&nbsp;PCLZIP_OPT_PATH.</span></div></li>
<li><div class="src-line"><a name="a684"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a685"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_path&nbsp;:&nbsp;Path&nbsp;where&nbsp;the&nbsp;files&nbsp;and&nbsp;directories&nbsp;are&nbsp;to&nbsp;be&nbsp;extracted</span></div></li>
<li><div class="src-line"><a name="a686"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_remove_path&nbsp;:&nbsp;First&nbsp;part&nbsp;('root'&nbsp;part)&nbsp;of&nbsp;the&nbsp;memorized&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a687"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(if&nbsp;any&nbsp;similar)&nbsp;to&nbsp;remove&nbsp;while&nbsp;extracting.</span></div></li>
<li><div class="src-line"><a name="a688"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Options&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a689"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a690"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_ADD_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a691"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a692"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_ALL_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a693"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_PRE_EXTRACT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a694"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_POST_EXTRACT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a695"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a696"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;or&nbsp;a&nbsp;negative&nbsp;value&nbsp;on&nbsp;failure,</span></div></li>
<li><div class="src-line"><a name="a697"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;list&nbsp;of&nbsp;the&nbsp;extracted&nbsp;files,&nbsp;with&nbsp;a&nbsp;status&nbsp;of&nbsp;the&nbsp;action.</span></div></li>
<li><div class="src-line"><a name="a698"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;(see&nbsp;PclZip::listContent()&nbsp;for&nbsp;list&nbsp;entry&nbsp;format)</span></div></li>
<li><div class="src-line"><a name="a699"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a700"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodextract">extract</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a701"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a702"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a703"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a704"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a705"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a706"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a707"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a708"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFormat">privCheckFormat</a><span class="src-sym">(</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a709"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a710"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a711"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a712"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;default&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a713"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a714"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;$v_path&nbsp;=&nbsp;&quot;./&quot;;</span></div></li>
<li><div class="src-line"><a name="a715"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a716"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_path&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a717"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_all_path&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a718"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a719"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;variable&nbsp;options&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a720"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_num_args">func_num_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a721"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a722"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Default&nbsp;values&nbsp;for&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a723"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-id">FALSE</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a724"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a725"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a726"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a727"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a728"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_arg_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a729"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a730"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;first&nbsp;arg</span></div></li>
<li><div class="src-line"><a name="a731"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/is_integer">is_integer</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]&nbsp;</span>&gt;&nbsp;<span class="src-num">77000</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a732"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a733"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Parse&nbsp;the&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a734"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivParseOptions">privParseOptions</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a735"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PATH">PCLZIP_OPT_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a736"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a737"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a738"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a739"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a740"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a741"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_SET_CHMOD">PCLZIP_OPT_SET_CHMOD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a742"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a743"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_EREG">PCLZIP_OPT_BY_EREG</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a744"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a745"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a746"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a747"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_IN_OUTPUT">PCLZIP_OPT_EXTRACT_IN_OUTPUT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a748"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REPLACE_NEWER">PCLZIP_OPT_REPLACE_NEWER</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a749"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a750"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_DIR_RESTRICTION">PCLZIP_OPT_EXTRACT_DIR_RESTRICTION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a751"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a752"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a753"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a754"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a755"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a756"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a757"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a758"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a759"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a760"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PATH">PCLZIP_OPT_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a761"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PATH">PCLZIP_OPT_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a762"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a763"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a764"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_path&nbsp;</span>=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a765"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a766"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a767"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_all_path&nbsp;</span>=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a768"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a769"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a770"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;for&nbsp;'/'&nbsp;in&nbsp;last&nbsp;path&nbsp;char</span></div></li>
<li><div class="src-line"><a name="a771"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_path</span><span class="src-sym">)&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$v_path</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">'/'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a772"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>.=&nbsp;<span class="src-str">'/'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a773"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a774"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>.=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a775"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a776"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a777"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a778"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;2&nbsp;args</span></div></li>
<li><div class="src-line"><a name="a779"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;we&nbsp;need&nbsp;to&nbsp;support&nbsp;the&nbsp;first&nbsp;historic&nbsp;synopsis&nbsp;of&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a780"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;method.</span></div></li>
<li><div class="src-line"><a name="a781"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a782"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a783"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;first&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a784"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a785"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a786"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;the&nbsp;optional&nbsp;second&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a787"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a788"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_path&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a789"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a790"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a791"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a792"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;number&nbsp;/&nbsp;type&nbsp;of&nbsp;arguments&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a793"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a794"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a795"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a796"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a797"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a798"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a799"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a800"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;default&nbsp;option&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a801"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOptionDefaultThreshold">privOptionDefaultThreshold</a><span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a802"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a803"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Trace</span></div></li>
<li><div class="src-line"><a name="a804"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a805"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;extracting&nbsp;fct</span></div></li>
<li><div class="src-line"><a name="a806"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a807"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivExtractByRule">privExtractByRule</a><span class="src-sym">(</span><span class="src-var">$p_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_remove_path</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a808"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_all_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a809"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>&lt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a810"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$p_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a811"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a812"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a813"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a814"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a815"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$p_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a816"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a817"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a818"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a819"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a820"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a821"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a822"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;extractByIndex($p_index,&nbsp;$p_path=&quot;./&quot;,&nbsp;$p_remove_path=&quot;&quot;)</span></div></li>
<li><div class="src-line"><a name="a823"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;extractByIndex($p_index,&nbsp;[$p_option,&nbsp;$p_option_value,&nbsp;...])</span></div></li>
<li><div class="src-line"><a name="a824"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a825"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;supports&nbsp;two&nbsp;synopsis.&nbsp;The&nbsp;first&nbsp;one&nbsp;is&nbsp;historical.</span></div></li>
<li><div class="src-line"><a name="a826"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;is&nbsp;doing&nbsp;a&nbsp;partial&nbsp;extract&nbsp;of&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a827"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;extracted&nbsp;files&nbsp;or&nbsp;folders&nbsp;are&nbsp;identified&nbsp;by&nbsp;their&nbsp;index&nbsp;in&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a828"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;archive&nbsp;(from&nbsp;0&nbsp;to&nbsp;n).</span></div></li>
<li><div class="src-line"><a name="a829"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Note&nbsp;that&nbsp;if&nbsp;the&nbsp;index&nbsp;identify&nbsp;a&nbsp;folder,&nbsp;only&nbsp;the&nbsp;folder&nbsp;entry&nbsp;is</span></div></li>
<li><div class="src-line"><a name="a830"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;extracted,&nbsp;not&nbsp;all&nbsp;the&nbsp;files&nbsp;included&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a831"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a832"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_index&nbsp;:&nbsp;A&nbsp;single&nbsp;index&nbsp;(integer)&nbsp;or&nbsp;a&nbsp;string&nbsp;of&nbsp;indexes&nbsp;of&nbsp;files&nbsp;to</span></div></li>
<li><div class="src-line"><a name="a833"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extract.&nbsp;The&nbsp;form&nbsp;of&nbsp;the&nbsp;string&nbsp;is&nbsp;&quot;0,4-6,8-12&quot;&nbsp;with&nbsp;only&nbsp;numbers</span></div></li>
<li><div class="src-line"><a name="a834"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;'-'&nbsp;for&nbsp;range&nbsp;or&nbsp;','&nbsp;to&nbsp;separate&nbsp;ranges.&nbsp;No&nbsp;spaces&nbsp;or&nbsp;';'</span></div></li>
<li><div class="src-line"><a name="a835"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;are&nbsp;allowed.</span></div></li>
<li><div class="src-line"><a name="a836"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_path&nbsp;:&nbsp;Path&nbsp;where&nbsp;the&nbsp;files&nbsp;and&nbsp;directories&nbsp;are&nbsp;to&nbsp;be&nbsp;extracted</span></div></li>
<li><div class="src-line"><a name="a837"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_remove_path&nbsp;:&nbsp;First&nbsp;part&nbsp;('root'&nbsp;part)&nbsp;of&nbsp;the&nbsp;memorized&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a838"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(if&nbsp;any&nbsp;similar)&nbsp;to&nbsp;remove&nbsp;while&nbsp;extracting.</span></div></li>
<li><div class="src-line"><a name="a839"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Options&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a840"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a841"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_ADD_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a842"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a843"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_REMOVE_ALL_PATH&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a844"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_EXTRACT_AS_STRING&nbsp;:&nbsp;The&nbsp;files&nbsp;are&nbsp;extracted&nbsp;as&nbsp;strings&nbsp;and</span></div></li>
<li><div class="src-line"><a name="a845"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not&nbsp;as&nbsp;files.</span></div></li>
<li><div class="src-line"><a name="a846"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;resulting&nbsp;content&nbsp;is&nbsp;in&nbsp;a&nbsp;new&nbsp;field&nbsp;'content'&nbsp;in&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a847"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;structure.</span></div></li>
<li><div class="src-line"><a name="a848"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;option&nbsp;must&nbsp;be&nbsp;used&nbsp;alone&nbsp;(any&nbsp;other&nbsp;options&nbsp;are&nbsp;ignored).</span></div></li>
<li><div class="src-line"><a name="a849"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_PRE_EXTRACT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a850"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_CB_POST_EXTRACT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a851"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a852"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure,</span></div></li>
<li><div class="src-line"><a name="a853"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;list&nbsp;of&nbsp;the&nbsp;extracted&nbsp;files,&nbsp;with&nbsp;a&nbsp;status&nbsp;of&nbsp;the&nbsp;action.</span></div></li>
<li><div class="src-line"><a name="a854"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;(see&nbsp;PclZip::listContent()&nbsp;for&nbsp;list&nbsp;entry&nbsp;format)</span></div></li>
<li><div class="src-line"><a name="a855"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a856"></a>&nbsp;&nbsp;<span class="src-comm">//function&nbsp;extractByIndex($p_index,&nbsp;options...)</span></div></li>
<li><div class="src-line"><a name="a857"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodextractByIndex">extractByIndex</a><span class="src-sym">(</span><span class="src-var">$p_index</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a858"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a859"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a860"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a861"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a862"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a863"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a864"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a865"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFormat">privCheckFormat</a><span class="src-sym">(</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a866"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a867"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a868"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a869"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;default&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a870"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a871"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;$v_path&nbsp;=&nbsp;&quot;./&quot;;</span></div></li>
<li><div class="src-line"><a name="a872"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a873"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_path&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a874"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_all_path&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a875"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a876"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;variable&nbsp;options&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a877"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_num_args">func_num_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a878"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a879"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Default&nbsp;values&nbsp;for&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a880"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-id">FALSE</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a881"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a882"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a883"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a884"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a885"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_arg_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a886"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a887"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;form&nbsp;the&nbsp;options&nbsp;list&nbsp;the&nbsp;first&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a888"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/array_shift">array_shift</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a889"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size</span>--<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a890"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a891"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;first&nbsp;arg</span></div></li>
<li><div class="src-line"><a name="a892"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/is_integer">is_integer</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]&nbsp;</span>&gt;&nbsp;<span class="src-num">77000</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a893"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a894"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Parse&nbsp;the&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a895"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivParseOptions">privParseOptions</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a896"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PATH">PCLZIP_OPT_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a897"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a898"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a899"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a900"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a901"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a902"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a903"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_SET_CHMOD">PCLZIP_OPT_SET_CHMOD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a904"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REPLACE_NEWER">PCLZIP_OPT_REPLACE_NEWER</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a905"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a906"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_DIR_RESTRICTION">PCLZIP_OPT_EXTRACT_DIR_RESTRICTION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a907"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a908"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a909"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span></div></li>
<li><div class="src-line"><a name="a910"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a911"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a912"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a913"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a914"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a915"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a916"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PATH">PCLZIP_OPT_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a917"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PATH">PCLZIP_OPT_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a918"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a919"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a920"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_path&nbsp;</span>=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a921"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a922"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a923"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_all_path&nbsp;</span>=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a924"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a925"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a926"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;for&nbsp;'/'&nbsp;in&nbsp;last&nbsp;path&nbsp;char</span></div></li>
<li><div class="src-line"><a name="a927"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_path</span><span class="src-sym">)&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$v_path</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">'/'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a928"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>.=&nbsp;<span class="src-str">'/'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a929"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a930"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>.=&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a931"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a932"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a933"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-id">FALSE</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a934"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a935"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a936"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a937"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a938"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a939"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;2&nbsp;args</span></div></li>
<li><div class="src-line"><a name="a940"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;we&nbsp;need&nbsp;to&nbsp;support&nbsp;the&nbsp;first&nbsp;historic&nbsp;synopsis&nbsp;of&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a941"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;method.</span></div></li>
<li><div class="src-line"><a name="a942"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a943"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a944"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;first&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a945"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a946"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a947"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;the&nbsp;optional&nbsp;second&nbsp;argument</span></div></li>
<li><div class="src-line"><a name="a948"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a949"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_remove_path&nbsp;</span>=&nbsp;<span class="src-var">$v_arg_list</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a950"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a951"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a952"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a953"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;number&nbsp;/&nbsp;type&nbsp;of&nbsp;arguments&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a954"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a955"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a956"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a957"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a958"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a959"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a960"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a961"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Trace</span></div></li>
<li><div class="src-line"><a name="a962"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a963"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Trick</span></div></li>
<li><div class="src-line"><a name="a964"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;want&nbsp;to&nbsp;reuse&nbsp;extractByRule(),&nbsp;so&nbsp;I&nbsp;need&nbsp;to&nbsp;parse&nbsp;the&nbsp;$p_index</span></div></li>
<li><div class="src-line"><a name="a965"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;with&nbsp;privParseOptions()</span></div></li>
<li><div class="src-line"><a name="a966"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_arg_trick&nbsp;</span>=&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_index</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a967"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options_trick&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a968"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivParseOptions">privParseOptions</a><span class="src-sym">(</span><span class="src-var">$v_arg_trick</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_arg_trick</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options_trick</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a969"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'&nbsp;</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a970"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a971"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a972"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a973"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_options_trick</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a974"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a975"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;default&nbsp;option&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a976"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOptionDefaultThreshold">privOptionDefaultThreshold</a><span class="src-sym">(</span><span class="src-var">$v_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a977"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a978"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;extracting&nbsp;fct</span></div></li>
<li><div class="src-line"><a name="a979"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivExtractByRule">privExtractByRule</a><span class="src-sym">(</span><span class="src-var">$p_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_remove_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_remove_all_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">))&nbsp;</span>&lt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a980"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a981"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a982"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a983"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a984"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$p_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a985"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a986"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a987"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a988"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a989"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a990"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;delete([$p_option,&nbsp;$p_option_value,&nbsp;...])</span></div></li>
<li><div class="src-line"><a name="a991"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a992"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;removes&nbsp;files&nbsp;from&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a993"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;no&nbsp;parameters&nbsp;are&nbsp;given,&nbsp;then&nbsp;all&nbsp;the&nbsp;archive&nbsp;is&nbsp;emptied.</span></div></li>
<li><div class="src-line"><a name="a994"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a995"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;None&nbsp;or&nbsp;optional&nbsp;arguments.</span></div></li>
<li><div class="src-line"><a name="a996"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Options&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a997"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_BY_INDEX&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a998"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_BY_NAME&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a999"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_BY_EREG&nbsp;:&nbsp;</span></div></li>
<li><div class="src-line"><a name="a1000"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;PCLZIP_OPT_BY_PREG&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1001"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1002"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure,</span></div></li>
<li><div class="src-line"><a name="a1003"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;list&nbsp;of&nbsp;the&nbsp;files&nbsp;which&nbsp;are&nbsp;still&nbsp;present&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a1004"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;(see&nbsp;PclZip::listContent()&nbsp;for&nbsp;list&nbsp;entry&nbsp;format)</span></div></li>
<li><div class="src-line"><a name="a1005"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1006"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methoddelete">delete</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1007"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1008"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1009"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1010"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a1011"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1012"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1013"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1014"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFormat">privCheckFormat</a><span class="src-sym">(</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1015"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1016"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1017"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1018"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;default&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a1019"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_options&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1020"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1021"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;variable&nbsp;options&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a1022"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_num_args">func_num_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1023"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1024"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a1025"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1026"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;arguments</span></div></li>
<li><div class="src-line"><a name="a1027"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_arg_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1028"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1029"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Parse&nbsp;the&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1030"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivParseOptions">privParseOptions</a><span class="src-sym">(</span><span class="src-var">$v_arg_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1031"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1032"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_EREG">PCLZIP_OPT_BY_EREG</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1033"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1034"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'optional'&nbsp;</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1035"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1036"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1037"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1038"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1039"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1040"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a1041"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDisableMagicQuotes">privDisableMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1042"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1043"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;delete&nbsp;fct</span></div></li>
<li><div class="src-line"><a name="a1044"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1045"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDeleteByRule">privDeleteByRule</a><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1046"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1047"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1048"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1049"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1050"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1051"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a1052"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1053"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1054"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1055"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1056"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1057"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1058"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1059"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1060"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;deleteByIndex()</span></div></li>
<li><div class="src-line"><a name="a1061"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1062"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;*****&nbsp;Deprecated&nbsp;*****</span></div></li>
<li><div class="src-line"><a name="a1063"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;delete(PCLZIP_OPT_BY_INDEX,&nbsp;$p_index)&nbsp;should&nbsp;be&nbsp;prefered.</span></div></li>
<li><div class="src-line"><a name="a1064"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1065"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methoddeleteByIndex">deleteByIndex</a><span class="src-sym">(</span><span class="src-var">$p_index</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1066"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1067"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1068"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_list&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methoddelete">delete</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_index</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1069"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1070"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1071"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$p_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1072"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1073"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1074"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1075"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1076"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;properties()</span></div></li>
<li><div class="src-line"><a name="a1077"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1078"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;gives&nbsp;the&nbsp;properties&nbsp;of&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a1079"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;properties&nbsp;are&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1080"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nb&nbsp;:&nbsp;Number&nbsp;of&nbsp;files&nbsp;in&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1081"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;comment&nbsp;:&nbsp;Comment&nbsp;associated&nbsp;with&nbsp;the&nbsp;archive&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a1082"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;status&nbsp;:&nbsp;not_exist,&nbsp;ok</span></div></li>
<li><div class="src-line"><a name="a1083"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1084"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;None</span></div></li>
<li><div class="src-line"><a name="a1085"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1086"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure,</span></div></li>
<li><div class="src-line"><a name="a1087"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;An&nbsp;array&nbsp;with&nbsp;the&nbsp;archive&nbsp;properties.</span></div></li>
<li><div class="src-line"><a name="a1088"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1089"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodproperties">properties</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1090"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1091"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1092"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a1093"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1094"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1095"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a1096"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDisableMagicQuotes">privDisableMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1097"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1098"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1099"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFormat">privCheckFormat</a><span class="src-sym">(</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1100"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1101"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1102"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1103"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1104"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Default&nbsp;properties</span></div></li>
<li><div class="src-line"><a name="a1105"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prop&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1106"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prop</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1107"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prop</span><span class="src-sym">[</span><span class="src-str">'nb'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1108"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prop</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'not_exist'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1109"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1110"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;file&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a1111"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a1112"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1113"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a1114"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">,&nbsp;</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1115"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1116"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1117"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1118"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1119"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;archive&nbsp;\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1120"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1121"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1122"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1123"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1124"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1125"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;central&nbsp;directory&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a1126"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_central_dir&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1127"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadEndCentralDir">privReadEndCentralDir</a><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1128"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1129"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1130"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1131"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1132"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1133"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a1134"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1135"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1136"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;user&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a1137"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prop</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1138"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prop</span><span class="src-sym">[</span><span class="src-str">'nb'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1139"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prop</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'ok'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1140"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1141"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1142"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a1143"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1144"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1145"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1146"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_prop</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1147"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1148"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1149"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1150"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1151"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;duplicate()</span></div></li>
<li><div class="src-line"><a name="a1152"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1153"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;creates&nbsp;an&nbsp;archive&nbsp;by&nbsp;copying&nbsp;the&nbsp;content&nbsp;of&nbsp;an&nbsp;other&nbsp;one.&nbsp;If</span></div></li>
<li><div class="src-line"><a name="a1154"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;the&nbsp;archive&nbsp;already&nbsp;exist,&nbsp;it&nbsp;is&nbsp;replaced&nbsp;by&nbsp;the&nbsp;new&nbsp;one&nbsp;without&nbsp;any&nbsp;warning.</span></div></li>
<li><div class="src-line"><a name="a1155"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1156"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_archive&nbsp;:&nbsp;The&nbsp;filename&nbsp;of&nbsp;a&nbsp;valid&nbsp;archive,&nbsp;or</span></div></li>
<li><div class="src-line"><a name="a1157"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;valid&nbsp;PclZip&nbsp;object.</span></div></li>
<li><div class="src-line"><a name="a1158"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1159"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success.</span></div></li>
<li><div class="src-line"><a name="a1160"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;or&nbsp;a&nbsp;negative&nbsp;value&nbsp;on&nbsp;error&nbsp;(error&nbsp;code).</span></div></li>
<li><div class="src-line"><a name="a1161"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1162"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodduplicate">duplicate</a><span class="src-sym">(</span><span class="src-var">$p_archive</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1163"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1164"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1165"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1166"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a1167"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1168"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1169"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_archive&nbsp;is&nbsp;a&nbsp;PclZip&nbsp;object</span></div></li>
<li><div class="src-line"><a name="a1170"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/is_object">is_object</a><span class="src-sym">(</span><span class="src-var">$p_archive</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/get_class">get_class</a><span class="src-sym">(</span><span class="src-var">$p_archive</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">'pclzip'</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a1171"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1172"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1173"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Duplicate&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1174"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDuplicate">privDuplicate</a><span class="src-sym">(</span><span class="src-var">$p_archive</span><span class="src-sym">-&gt;</span><span class="src-id">zipname</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1175"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1176"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1177"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_archive&nbsp;is&nbsp;a&nbsp;string&nbsp;(so&nbsp;a&nbsp;filename)</span></div></li>
<li><div class="src-line"><a name="a1178"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_archive</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a1179"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1180"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1181"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;that&nbsp;$p_archive&nbsp;is&nbsp;a&nbsp;valid&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a1182"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;Should&nbsp;also&nbsp;check&nbsp;the&nbsp;archive&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a1183"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$p_archive</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1184"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1185"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_FILE">PCLZIP_ERR_MISSING_FILE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;No&nbsp;file&nbsp;with&nbsp;filename&nbsp;'&quot;</span>.<span class="src-var">$p_archive</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1186"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_FILE">PCLZIP_ERR_MISSING_FILE</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1187"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1188"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1189"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Duplicate&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1190"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDuplicate">privDuplicate</a><span class="src-sym">(</span><span class="src-var">$p_archive</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1191"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1192"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1193"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1194"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Invalid&nbsp;variable</span></div></li>
<li><div class="src-line"><a name="a1195"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a1196"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1197"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1198"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;variable&nbsp;type&nbsp;p_archive_to_add&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1199"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1200"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1201"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1202"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1203"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1204"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1205"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1206"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1207"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1208"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;merge()</span></div></li>
<li><div class="src-line"><a name="a1209"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1210"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;merge&nbsp;the&nbsp;$p_archive_to_add&nbsp;archive&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;current</span></div></li>
<li><div class="src-line"><a name="a1211"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;one&nbsp;($this).</span></div></li>
<li><div class="src-line"><a name="a1212"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;the&nbsp;archive&nbsp;($this)&nbsp;does&nbsp;not&nbsp;exist,&nbsp;the&nbsp;merge&nbsp;becomes&nbsp;a&nbsp;duplicate.</span></div></li>
<li><div class="src-line"><a name="a1213"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;the&nbsp;$p_archive_to_add&nbsp;archive&nbsp;does&nbsp;not&nbsp;exist,&nbsp;the&nbsp;merge&nbsp;is&nbsp;a&nbsp;success.</span></div></li>
<li><div class="src-line"><a name="a1214"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1215"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_archive_to_add&nbsp;:&nbsp;It&nbsp;can&nbsp;be&nbsp;directly&nbsp;the&nbsp;filename&nbsp;of&nbsp;a&nbsp;valid&nbsp;zip&nbsp;archive,</span></div></li>
<li><div class="src-line"><a name="a1216"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or&nbsp;a&nbsp;PclZip&nbsp;object&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a1217"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1218"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success,</span></div></li>
<li><div class="src-line"><a name="a1219"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;or&nbsp;negative&nbsp;values&nbsp;on&nbsp;error&nbsp;(see&nbsp;below).</span></div></li>
<li><div class="src-line"><a name="a1220"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1221"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodmerge">merge</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1222"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1223"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1224"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1225"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a1226"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1227"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1228"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1229"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFormat">privCheckFormat</a><span class="src-sym">(</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1230"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1231"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1232"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1233"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_archive_to_add&nbsp;is&nbsp;a&nbsp;PclZip&nbsp;object</span></div></li>
<li><div class="src-line"><a name="a1234"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/is_object">is_object</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/get_class">get_class</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">'pclzip'</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a1235"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1236"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1237"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Merge&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1238"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivMerge">privMerge</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1239"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1240"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1241"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_archive_to_add&nbsp;is&nbsp;a&nbsp;string&nbsp;(so&nbsp;a&nbsp;filename)</span></div></li>
<li><div class="src-line"><a name="a1242"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a1243"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1244"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1245"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;a&nbsp;temporary&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1246"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_object_archive&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1247"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1248"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Merge&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a1249"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivMerge">privMerge</a><span class="src-sym">(</span><span class="src-var">$v_object_archive</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1250"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1251"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1252"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Invalid&nbsp;variable</span></div></li>
<li><div class="src-line"><a name="a1253"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a1254"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1255"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1256"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;variable&nbsp;type&nbsp;p_archive_to_add&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1257"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1258"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1259"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1260"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1261"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1262"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1263"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1264"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1265"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1266"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1267"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1268"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;errorCode()</span></div></li>
<li><div class="src-line"><a name="a1269"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1270"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1271"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1272"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1273"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1274"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERROR_EXTERNAL">PCLZIP_ERROR_EXTERNAL</a>&nbsp;</span>==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1275"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-id">PclErrorCode</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1276"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1277"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1278"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_code">error_code</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1279"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1280"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1281"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1282"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1283"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1284"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;errorName()</span></div></li>
<li><div class="src-line"><a name="a1285"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1286"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1287"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1288"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methoderrorName">errorName</a><span class="src-sym">(</span><span class="src-var">$p_with_code</span>=<span class="src-id">false</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1289"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1290"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_name&nbsp;</span>=&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_NO_ERROR">PCLZIP_ERR_NO_ERROR</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_NO_ERROR'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1291"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_WRITE_OPEN_FAIL">PCLZIP_ERR_WRITE_OPEN_FAIL</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_WRITE_OPEN_FAIL'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1292"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_READ_OPEN_FAIL'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1293"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_INVALID_PARAMETER'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1294"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_FILE">PCLZIP_ERR_MISSING_FILE</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_MISSING_FILE'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1295"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_FILENAME_TOO_LONG">PCLZIP_ERR_FILENAME_TOO_LONG</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_FILENAME_TOO_LONG'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1296"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ZIP">PCLZIP_ERR_INVALID_ZIP</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_INVALID_ZIP'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1297"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_EXTRACTED_FILE">PCLZIP_ERR_BAD_EXTRACTED_FILE</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_BAD_EXTRACTED_FILE'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1298"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_DIR_CREATE_FAIL">PCLZIP_ERR_DIR_CREATE_FAIL</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_DIR_CREATE_FAIL'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1299"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_EXTENSION">PCLZIP_ERR_BAD_EXTENSION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_BAD_EXTENSION'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1300"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_BAD_FORMAT'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1301"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_DELETE_FILE_FAIL">PCLZIP_ERR_DELETE_FILE_FAIL</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_DELETE_FILE_FAIL'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1302"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_RENAME_FILE_FAIL">PCLZIP_ERR_RENAME_FILE_FAIL</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_RENAME_FILE_FAIL'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1303"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_CHECKSUM">PCLZIP_ERR_BAD_CHECKSUM</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_BAD_CHECKSUM'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1304"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ARCHIVE_ZIP">PCLZIP_ERR_INVALID_ARCHIVE_ZIP</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_INVALID_ARCHIVE_ZIP'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1305"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_MISSING_OPTION_VALUE'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1306"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_INVALID_OPTION_VALUE'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1307"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_UNSUPPORTED_COMPRESSION">PCLZIP_ERR_UNSUPPORTED_COMPRESSION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_UNSUPPORTED_COMPRESSION'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1308"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_UNSUPPORTED_ENCRYPTION">PCLZIP_ERR_UNSUPPORTED_ENCRYPTION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION'</span></div></li>
<li><div class="src-line"><a name="a1309"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE'</span></div></li>
<li><div class="src-line"><a name="a1310"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">,</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_DIRECTORY_RESTRICTION">PCLZIP_ERR_DIRECTORY_RESTRICTION</a>&nbsp;</span>=&gt;&nbsp;<span class="src-str">'PCLZIP_ERR_DIRECTORY_RESTRICTION'</span></div></li>
<li><div class="src-line"><a name="a1311"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1312"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1313"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_name</span><span class="src-sym">[</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_code">error_code</a><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1314"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_value&nbsp;</span>=&nbsp;<span class="src-var">$v_name</span><span class="src-sym">[</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_code">error_code</a><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1315"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1316"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1317"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_value&nbsp;</span>=&nbsp;<span class="src-str">'NoName'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1318"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1319"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1320"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_with_code</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1321"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-var">$v_value</span>.<span class="src-str">'&nbsp;('</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_code">error_code</a>.<span class="src-str">')'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1322"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1323"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1324"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1325"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1326"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1327"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1328"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1329"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1330"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;errorInfo()</span></div></li>
<li><div class="src-line"><a name="a1331"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1332"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1333"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1334"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methoderrorInfo">errorInfo</a><span class="src-sym">(</span><span class="src-var">$p_full</span>=<span class="src-id">false</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1335"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1336"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERROR_EXTERNAL">PCLZIP_ERROR_EXTERNAL</a>&nbsp;</span>==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1337"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-id">PclErrorString</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1338"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1339"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1340"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_full</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1341"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methoderrorName">errorName</a><span class="src-sym">(</span><span class="src-id">true</span><span class="src-sym">)</span>.<span class="src-str">&quot;&nbsp;:&nbsp;&quot;</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_string">error_string</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1342"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1343"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1344"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_string">error_string</a>.<span class="src-str">&quot;&nbsp;[code&nbsp;&quot;</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_code">error_code</a>.<span class="src-str">&quot;]&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1345"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1346"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1347"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1348"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1349"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1350"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1351"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1352"></a><span class="src-comm">//&nbsp;*****&nbsp;UNDER&nbsp;THIS&nbsp;LINE&nbsp;ARE&nbsp;DEFINED&nbsp;PRIVATE&nbsp;INTERNAL&nbsp;FUNCTIONS&nbsp;*****</span></div></li>
<li><div class="src-line"><a name="a1353"></a><span class="src-comm">//&nbsp;*****&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*****</span></div></li>
<li><div class="src-line"><a name="a1354"></a><span class="src-comm">//&nbsp;*****&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;THESES&nbsp;FUNCTIONS&nbsp;MUST&nbsp;NOT&nbsp;BE&nbsp;USED&nbsp;DIRECTLY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*****</span></div></li>
<li><div class="src-line"><a name="a1355"></a><span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1356"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1357"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1358"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1359"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1360"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privCheckFormat()</span></div></li>
<li><div class="src-line"><a name="a1361"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1362"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;check&nbsp;that&nbsp;the&nbsp;archive&nbsp;exists&nbsp;and&nbsp;is&nbsp;a&nbsp;valid&nbsp;zip&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a1363"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Several&nbsp;level&nbsp;of&nbsp;check&nbsp;exists.&nbsp;(futur)</span></div></li>
<li><div class="src-line"><a name="a1364"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1365"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_level&nbsp;:&nbsp;Level&nbsp;of&nbsp;check.&nbsp;Default&nbsp;0.</span></div></li>
<li><div class="src-line"><a name="a1366"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;:&nbsp;Check&nbsp;the&nbsp;first&nbsp;bytes&nbsp;(magic&nbsp;codes)&nbsp;(default&nbsp;value))</span></div></li>
<li><div class="src-line"><a name="a1367"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;:&nbsp;0&nbsp;+&nbsp;Check&nbsp;the&nbsp;central&nbsp;directory&nbsp;(futur)</span></div></li>
<li><div class="src-line"><a name="a1368"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;:&nbsp;1&nbsp;+&nbsp;Check&nbsp;each&nbsp;file&nbsp;header&nbsp;(futur)</span></div></li>
<li><div class="src-line"><a name="a1369"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1370"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;true&nbsp;on&nbsp;success,</span></div></li>
<li><div class="src-line"><a name="a1371"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;false&nbsp;on&nbsp;error,&nbsp;the&nbsp;error&nbsp;code&nbsp;is&nbsp;set.</span></div></li>
<li><div class="src-line"><a name="a1372"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1373"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFormat">privCheckFormat</a><span class="src-sym">(</span><span class="src-var">$p_level</span>=<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1374"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1375"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1376"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1377"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;file&nbsp;system&nbsp;cache</span></div></li>
<li><div class="src-line"><a name="a1378"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/clearstatcache">clearstatcache</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1379"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1380"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;error&nbsp;handler</span></div></li>
<li><div class="src-line"><a name="a1381"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1382"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1383"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;file&nbsp;exits</span></div></li>
<li><div class="src-line"><a name="a1384"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1385"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1386"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_FILE">PCLZIP_ERR_MISSING_FILE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;archive&nbsp;file&nbsp;'&quot;</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1387"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1388"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1389"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1390"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;that&nbsp;the&nbsp;file&nbsp;is&nbsp;readeable</span></div></li>
<li><div class="src-line"><a name="a1391"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_readable">is_readable</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1392"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1393"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Unable&nbsp;to&nbsp;read&nbsp;archive&nbsp;'&quot;</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1394"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return</span><span class="src-sym">(</span><span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1395"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1396"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1397"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;magic&nbsp;code</span></div></li>
<li><div class="src-line"><a name="a1398"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a1399"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1400"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;central&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a1401"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a1402"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1403"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;each&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a1404"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a1405"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1406"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1407"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1408"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1409"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1410"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1411"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1412"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privParseOptions()</span></div></li>
<li><div class="src-line"><a name="a1413"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1414"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;internal&nbsp;methods&nbsp;reads&nbsp;the&nbsp;variable&nbsp;list&nbsp;of&nbsp;arguments&nbsp;($p_options_list,</span></div></li>
<li><div class="src-line"><a name="a1415"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_size)&nbsp;and&nbsp;generate&nbsp;an&nbsp;array&nbsp;with&nbsp;the&nbsp;options&nbsp;and&nbsp;values&nbsp;($v_result_list).</span></div></li>
<li><div class="src-line"><a name="a1416"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$v_requested_options&nbsp;contains&nbsp;the&nbsp;options&nbsp;that&nbsp;can&nbsp;be&nbsp;present&nbsp;and&nbsp;those&nbsp;that</span></div></li>
<li><div class="src-line"><a name="a1417"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;must&nbsp;be&nbsp;present.</span></div></li>
<li><div class="src-line"><a name="a1418"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$v_requested_options&nbsp;is&nbsp;an&nbsp;array,&nbsp;with&nbsp;the&nbsp;option&nbsp;value&nbsp;as&nbsp;key,&nbsp;and&nbsp;'optional',</span></div></li>
<li><div class="src-line"><a name="a1419"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;or&nbsp;'mandatory'&nbsp;as&nbsp;value.</span></div></li>
<li><div class="src-line"><a name="a1420"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1421"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;See&nbsp;above.</span></div></li>
<li><div class="src-line"><a name="a1422"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1423"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success.</span></div></li>
<li><div class="src-line"><a name="a1424"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure.</span></div></li>
<li><div class="src-line"><a name="a1425"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1426"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivParseOptions">privParseOptions</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_options_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_size</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$v_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_requested_options</span>=<span class="src-id">false</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1427"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1428"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1429"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1430"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1431"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1432"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>&lt;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1433"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1434"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;if&nbsp;the&nbsp;option&nbsp;is&nbsp;supported</span></div></li>
<li><div class="src-line"><a name="a1435"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1436"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1437"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;optional&nbsp;parameter&nbsp;'&quot;</span>.<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;for&nbsp;this&nbsp;method&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1438"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1439"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1440"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1441"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1442"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1443"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;next&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a1444"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">switch&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1445"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;request&nbsp;a&nbsp;path&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1446"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PATH">PCLZIP_OPT_PATH</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1447"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1448"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1449"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1450"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1451"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1452"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1453"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1454"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1455"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1456"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1457"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1458"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1459"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-id">FALSE</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1460"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1461"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1462"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1463"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1464"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1465"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1466"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1467"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1468"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1469"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1470"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;for&nbsp;incompatible&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1471"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1472"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&nbsp;can&nbsp;not&nbsp;be&nbsp;used&nbsp;with&nbsp;option&nbsp;'PCLZIP_OPT_TEMP_FILE_OFF'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1473"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1474"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1475"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1476"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1477"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_value&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1478"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-sym">!</span><a href="http://www.php.net/is_integer">is_integer</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">))&nbsp;</span>||&nbsp;<span class="src-sym">(</span><span class="src-var">$v_value</span>&lt;<span class="src-num">0</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1479"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Integer&nbsp;expected&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1480"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1481"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1482"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1483"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value&nbsp;(and&nbsp;convert&nbsp;it&nbsp;in&nbsp;bytes)</span></div></li>
<li><div class="src-line"><a name="a1484"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-var">$v_value</span>*<span class="src-num">1048576</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1485"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1486"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1487"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1488"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1489"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;for&nbsp;incompatible&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1490"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1491"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&nbsp;can&nbsp;not&nbsp;be&nbsp;used&nbsp;with&nbsp;option&nbsp;'PCLZIP_OPT_TEMP_FILE_OFF'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1492"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1493"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1494"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1495"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1496"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1497"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1498"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1499"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;for&nbsp;incompatible&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1500"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1501"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&nbsp;can&nbsp;not&nbsp;be&nbsp;used&nbsp;with&nbsp;option&nbsp;'PCLZIP_OPT_TEMP_FILE_ON'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1502"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1503"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1504"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;for&nbsp;incompatible&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1505"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1506"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&nbsp;can&nbsp;not&nbsp;be&nbsp;used&nbsp;with&nbsp;option&nbsp;'PCLZIP_OPT_TEMP_FILE_THRESHOLD'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1507"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1508"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1509"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1510"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1511"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1512"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1513"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_DIR_RESTRICTION">PCLZIP_OPT_EXTRACT_DIR_RESTRICTION</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1514"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1515"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1516"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1517"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1518"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1519"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1520"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1521"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1522"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1523"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1524"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1525"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">''</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1526"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-id">FALSE</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1527"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1528"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1529"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1530"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1531"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1532"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1533"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;request&nbsp;an&nbsp;array&nbsp;of&nbsp;string&nbsp;for&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1534"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1535"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1536"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1537"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1538"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1539"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1540"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1541"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1542"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1543"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1544"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1545"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1546"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1547"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1548"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1549"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1550"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1551"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1552"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1553"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Wrong&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1554"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1555"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1556"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1557"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1558"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1559"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1560"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1561"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;request&nbsp;an&nbsp;EREG&nbsp;or&nbsp;PREG&nbsp;expression</span></div></li>
<li><div class="src-line"><a name="a1562"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_EREG">PCLZIP_OPT_BY_EREG</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1563"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;ereg()&nbsp;is&nbsp;deprecated&nbsp;starting&nbsp;with&nbsp;PHP&nbsp;5.3.&nbsp;Move&nbsp;PCLZIP_OPT_BY_EREG</span></div></li>
<li><div class="src-line"><a name="a1564"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;to&nbsp;PCLZIP_OPT_BY_PREG</span></div></li>
<li><div class="src-line"><a name="a1565"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1566"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1567"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//case&nbsp;PCLZIP_OPT_CRYPT&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1568"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1569"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1570"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1571"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1572"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1573"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1574"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1575"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1576"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1577"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1578"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1579"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1580"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1581"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1582"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1583"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Wrong&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1584"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1585"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1587"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1588"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1589"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1590"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1591"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;takes&nbsp;a&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a1592"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1593"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_COMMENT">PCLZIP_OPT_ADD_COMMENT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1594"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PREPEND_COMMENT">PCLZIP_OPT_PREPEND_COMMENT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1595"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1596"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1597"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1598"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1599"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span></div></li>
<li><div class="src-line"><a name="a1600"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1601"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1602"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1603"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1604"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1605"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1606"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1607"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1608"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1609"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1610"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1611"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1612"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1613"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1614"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Wrong&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span></div></li>
<li><div class="src-line"><a name="a1615"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1616"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1617"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1618"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1619"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1620"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1621"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1622"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1623"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1624"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;request&nbsp;an&nbsp;array&nbsp;of&nbsp;index</span></div></li>
<li><div class="src-line"><a name="a1625"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1626"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1627"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1628"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1629"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1630"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1631"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1632"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1633"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1634"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1635"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1636"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_work_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1637"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1638"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1639"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;spaces</span></div></li>
<li><div class="src-line"><a name="a1640"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/strtr">strtr</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-str">'&nbsp;'</span><span class="src-sym">,&nbsp;</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1641"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1642"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Parse&nbsp;items</span></div></li>
<li><div class="src-line"><a name="a1643"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_work_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">&quot;,&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1644"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1645"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_integer">is_integer</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1646"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_work_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span>.<span class="src-str">'-'</span>.<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1647"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1648"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1649"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_work_list&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1650"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1651"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1652"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1653"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Value&nbsp;must&nbsp;be&nbsp;integer,&nbsp;string&nbsp;or&nbsp;array&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1654"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1655"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1656"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1657"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1658"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1659"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reduce&nbsp;the&nbsp;index&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a1660"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;each&nbsp;index&nbsp;item&nbsp;in&nbsp;the&nbsp;list&nbsp;must&nbsp;be&nbsp;a&nbsp;couple&nbsp;with&nbsp;a&nbsp;start&nbsp;and</span></div></li>
<li><div class="src-line"><a name="a1661"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;an&nbsp;end&nbsp;value&nbsp;:&nbsp;[0,3],&nbsp;[5-5],&nbsp;[8-10],&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a1662"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;format&nbsp;of&nbsp;each&nbsp;item</span></div></li>
<li><div class="src-line"><a name="a1663"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_sort_flag</span>=<span class="src-id">false</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1664"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_sort_value</span>=<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1665"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$j</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_work_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$j</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1666"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Explode&nbsp;the&nbsp;item</span></div></li>
<li><div class="src-line"><a name="a1667"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_item_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">&quot;-&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_work_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1668"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size_item_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_item_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1669"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1670"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;TBC&nbsp;:&nbsp;Here&nbsp;we&nbsp;might&nbsp;check&nbsp;that&nbsp;each&nbsp;item&nbsp;is&nbsp;a</span></div></li>
<li><div class="src-line"><a name="a1671"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;real&nbsp;integer&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a1672"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1673"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;single&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1674"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size_item_list&nbsp;</span>==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1675"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;option&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1676"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_item_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1677"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'end'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_item_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1678"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1679"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size_item_list&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1680"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;option&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1681"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_item_list</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1682"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'end'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_item_list</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1683"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1684"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1685"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1686"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Too&nbsp;many&nbsp;values&nbsp;in&nbsp;index&nbsp;range&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1687"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1688"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1689"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1690"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1691"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1692"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1693"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;list&nbsp;sort</span></div></li>
<li><div class="src-line"><a name="a1694"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]&nbsp;</span>&lt;&nbsp;<span class="src-var">$v_sort_value</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1695"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_sort_flag</span>=<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1696"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1697"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;TBC&nbsp;:&nbsp;An&nbsp;automatic&nbsp;sort&nbsp;should&nbsp;be&nbsp;writen&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a1698"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1699"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;order&nbsp;of&nbsp;index&nbsp;range&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1700"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1701"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1702"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1703"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1704"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_sort_value&nbsp;</span>=&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1705"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1706"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1707"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Sort&nbsp;the&nbsp;items</span></div></li>
<li><div class="src-line"><a name="a1708"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_sort_flag</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1709"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;To&nbsp;Be&nbsp;Completed</span></div></li>
<li><div class="src-line"><a name="a1710"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1711"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1712"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Next&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a1713"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1714"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1715"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1716"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;request&nbsp;no&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1717"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1718"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1719"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_NO_COMPRESSION">PCLZIP_OPT_NO_COMPRESSION</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1720"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_IN_OUTPUT">PCLZIP_OPT_EXTRACT_IN_OUTPUT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1721"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REPLACE_NEWER">PCLZIP_OPT_REPLACE_NEWER</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1722"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1723"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1724"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1725"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1726"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;request&nbsp;an&nbsp;octal&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1727"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_SET_CHMOD">PCLZIP_OPT_SET_CHMOD</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1728"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1729"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1730"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1731"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1732"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1733"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1734"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1735"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1736"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1737"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1738"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1739"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1740"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1741"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1742"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;request&nbsp;a&nbsp;call-back</span></div></li>
<li><div class="src-line"><a name="a1743"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1744"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1745"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_ADD">PCLZIP_CB_PRE_ADD</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1746"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_ADD">PCLZIP_CB_POST_ADD</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1747"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">/*&nbsp;for&nbsp;futur&nbsp;use</span></div></li>
<li><div class="src-line"><a name="a1748"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;PCLZIP_CB_PRE_DELETE&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1749"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;PCLZIP_CB_POST_DELETE&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1750"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;PCLZIP_CB_PRE_LIST&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1751"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;PCLZIP_CB_POST_LIST&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1752"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a1753"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;number&nbsp;of&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a1754"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>&gt;=&nbsp;<span class="src-var">$p_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1755"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1756"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_OPTION_VALUE">PCLZIP_ERR_MISSING_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;parameter&nbsp;value&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1757"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1758"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1759"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1760"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1761"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1762"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1763"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_function_name&nbsp;</span>=&nbsp;<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1764"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1765"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;that&nbsp;the&nbsp;value&nbsp;is&nbsp;a&nbsp;valid&nbsp;existing&nbsp;function</span></div></li>
<li><div class="src-line"><a name="a1766"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-var">$v_function_name</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1767"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1768"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_OPTION_VALUE">PCLZIP_ERR_INVALID_OPTION_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Function&nbsp;'&quot;</span>.<span class="src-var">$v_function_name</span>.<span class="src-str">&quot;()'&nbsp;is&nbsp;not&nbsp;an&nbsp;existing&nbsp;function&nbsp;for&nbsp;option&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1769"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1770"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1771"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1772"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1773"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1774"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;attribute</span></div></li>
<li><div class="src-line"><a name="a1775"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]]&nbsp;</span>=&nbsp;<span class="src-var">$v_function_name</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1776"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1777"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1778"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1779"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">default&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1780"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1781"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1782"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Unknown&nbsp;parameter&nbsp;'&quot;</span></div></li>
<li><div class="src-line"><a name="a1783"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-var">$p_options_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1784"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1785"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1786"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1787"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1788"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1789"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Next&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1790"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1791"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1792"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1793"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;mandatory&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1794"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_requested_options&nbsp;</span>!==&nbsp;<span class="src-id">false</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1795"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$key</span>=<a href="http://www.php.net/reset">reset</a><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$key</span>=<a href="http://www.php.net/key">key</a><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$key</span>=<a href="http://www.php.net/next">next</a><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1796"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;mandatory&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a1797"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'mandatory'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1798"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;present</span></div></li>
<li><div class="src-line"><a name="a1799"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1800"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1801"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;mandatory&nbsp;parameter&nbsp;&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span>.<span class="src-str">&quot;(&quot;</span>.<span class="src-var">$key</span>.<span class="src-str">&quot;)&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1802"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1803"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1804"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1805"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1806"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1807"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1808"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1809"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1810"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;default&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a1811"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1812"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1813"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1814"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1815"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1816"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1817"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1818"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1819"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1820"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1821"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privOptionDefaultThreshold()</span></div></li>
<li><div class="src-line"><a name="a1822"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1823"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1824"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1825"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1826"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivOptionDefaultThreshold">privOptionDefaultThreshold</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1827"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1828"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1829"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1830"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1831"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1832"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1833"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1834"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1835"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;'memory_limit'&nbsp;configuration&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a1836"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_memory_limit&nbsp;</span>=&nbsp;<a href="http://www.php.net/ini_get">ini_get</a><span class="src-sym">(</span><span class="src-str">'memory_limit'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1837"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_memory_limit&nbsp;</span>=&nbsp;<a href="http://www.php.net/trim">trim</a><span class="src-sym">(</span><span class="src-var">$v_memory_limit</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1838"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$last&nbsp;</span>=&nbsp;<a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$v_memory_limit</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1839"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1840"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$last&nbsp;</span>==&nbsp;<span class="src-str">'g'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1841"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$v_memory_limit&nbsp;=&nbsp;$v_memory_limit*1024*1024*1024;</span></div></li>
<li><div class="src-line"><a name="a1842"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_memory_limit&nbsp;</span>=&nbsp;<span class="src-var">$v_memory_limit</span>*<span class="src-num">1073741824</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1843"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$last&nbsp;</span>==&nbsp;<span class="src-str">'m'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1844"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$v_memory_limit&nbsp;=&nbsp;$v_memory_limit*1024*1024;</span></div></li>
<li><div class="src-line"><a name="a1845"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_memory_limit&nbsp;</span>=&nbsp;<span class="src-var">$v_memory_limit</span>*<span class="src-num">1048576</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1846"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$last&nbsp;</span>==&nbsp;<span class="src-str">'k'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1847"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_memory_limit&nbsp;</span>=&nbsp;<span class="src-var">$v_memory_limit</span>*<span class="src-num">1024</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1848"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1849"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/floor">floor</a><span class="src-sym">(</span><span class="src-var">$v_memory_limit</span>*<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_TEMPORARY_FILE_RATIO">PCLZIP_TEMPORARY_FILE_RATIO</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1850"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1851"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1852"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Sanity&nbsp;check&nbsp;:&nbsp;No&nbsp;threshold&nbsp;if&nbsp;value&nbsp;lower&nbsp;than&nbsp;1M</span></div></li>
<li><div class="src-line"><a name="a1853"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]&nbsp;</span>&lt;&nbsp;<span class="src-num">1048576</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1854"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1855"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1856"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1857"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1858"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1859"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1860"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1861"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1862"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1863"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privFileDescrParseAtt()</span></div></li>
<li><div class="src-line"><a name="a1864"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1865"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1866"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1867"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success.</span></div></li>
<li><div class="src-line"><a name="a1868"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure.</span></div></li>
<li><div class="src-line"><a name="a1869"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1870"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivFileDescrParseAtt">privFileDescrParseAtt</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_file_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_filedescr</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_options</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_requested_options</span>=<span class="src-id">false</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a1871"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1872"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1873"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1874"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;For&nbsp;each&nbsp;file&nbsp;in&nbsp;the&nbsp;list&nbsp;check&nbsp;the&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a1875"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">foreach&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_file_list&nbsp;</span><span class="src-key">as&nbsp;</span><span class="src-var">$v_key&nbsp;</span>=&gt;&nbsp;<span class="src-var">$v_value</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1876"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1877"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;if&nbsp;the&nbsp;option&nbsp;is&nbsp;supported</span></div></li>
<li><div class="src-line"><a name="a1878"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">[</span><span class="src-var">$v_key</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1879"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1880"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;file&nbsp;attribute&nbsp;'&quot;</span>.<span class="src-var">$v_key</span>.<span class="src-str">&quot;'&nbsp;for&nbsp;this&nbsp;file&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1881"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1882"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1883"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1884"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1885"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1886"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;attribute</span></div></li>
<li><div class="src-line"><a name="a1887"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">switch&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1888"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NAME">PCLZIP_ATT_FILE_NAME</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1889"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1890"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;type&nbsp;&quot;</span>.<a href="http://www.php.net/gettype">gettype</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span>.<span class="src-str">&quot;.&nbsp;String&nbsp;expected&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1891"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1892"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1893"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1894"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1895"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1896"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1897"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;empty&nbsp;filename&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1898"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1899"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1900"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1901"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1902"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1903"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NEW_SHORT_NAME">PCLZIP_ATT_FILE_NEW_SHORT_NAME</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1904"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1905"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;type&nbsp;&quot;</span>.<a href="http://www.php.net/gettype">gettype</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span>.<span class="src-str">&quot;.&nbsp;String&nbsp;expected&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1906"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1907"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1908"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1909"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_short_name'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1910"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1911"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_short_name'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1912"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;empty&nbsp;short&nbsp;filename&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1913"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1914"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1915"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1916"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1917"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_NEW_FULL_NAME">PCLZIP_ATT_FILE_NEW_FULL_NAME</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1918"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1919"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;type&nbsp;&quot;</span>.<a href="http://www.php.net/gettype">gettype</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span>.<span class="src-str">&quot;.&nbsp;String&nbsp;expected&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1920"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1921"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1922"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1923"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_full_name'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1924"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1925"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_full_name'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1926"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;empty&nbsp;full&nbsp;filename&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1927"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1928"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1929"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1930"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1931"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;options&nbsp;that&nbsp;takes&nbsp;a&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a1932"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_COMMENT">PCLZIP_ATT_FILE_COMMENT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1933"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1934"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;type&nbsp;&quot;</span>.<a href="http://www.php.net/gettype">gettype</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span>.<span class="src-str">&quot;.&nbsp;String&nbsp;expected&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1935"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1936"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1937"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1938"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_value</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1939"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1940"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1941"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_MTIME">PCLZIP_ATT_FILE_MTIME</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1942"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_integer">is_integer</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1943"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ATTRIBUTE_VALUE">PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;type&nbsp;&quot;</span>.<a href="http://www.php.net/gettype">gettype</a><span class="src-sym">(</span><span class="src-var">$v_value</span><span class="src-sym">)</span>.<span class="src-str">&quot;.&nbsp;Integer&nbsp;expected&nbsp;for&nbsp;attribute&nbsp;'&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">)</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1944"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1945"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1946"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1947"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_value</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1948"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1949"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1950"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ATT_FILE_CONTENT">PCLZIP_ATT_FILE_CONTENT</a>&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1951"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_value</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1952"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1953"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1954"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">default&nbsp;</span>:</div></li>
<li><div class="src-line"><a name="a1955"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a1956"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a1957"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Unknown&nbsp;parameter&nbsp;'&quot;</span>.<span class="src-var">$v_key</span>.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1958"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1959"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1960"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1961"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1962"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1963"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;mandatory&nbsp;options</span></div></li>
<li><div class="src-line"><a name="a1964"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_requested_options&nbsp;</span>!==&nbsp;<span class="src-id">false</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1965"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$key</span>=<a href="http://www.php.net/reset">reset</a><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$key</span>=<a href="http://www.php.net/key">key</a><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$key</span>=<a href="http://www.php.net/next">next</a><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1966"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;mandatory&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a1967"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_requested_options</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'mandatory'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1968"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;present</span></div></li>
<li><div class="src-line"><a name="a1969"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$p_file_list</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a1970"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Missing&nbsp;mandatory&nbsp;parameter&nbsp;&quot;</span>.<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span>.<span class="src-str">&quot;(&quot;</span>.<span class="src-var">$key</span>.<span class="src-str">&quot;)&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1971"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1972"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1973"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1974"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1975"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1976"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1977"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;end&nbsp;foreach</span></div></li>
<li><div class="src-line"><a name="a1978"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1979"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a1980"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a1981"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a1982"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a1983"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1984"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a1985"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1986"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privFileDescrExpand()</span></div></li>
<li><div class="src-line"><a name="a1987"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1988"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;method&nbsp;look&nbsp;for&nbsp;each&nbsp;item&nbsp;of&nbsp;the&nbsp;list&nbsp;to&nbsp;see&nbsp;if&nbsp;its&nbsp;a&nbsp;file,&nbsp;a&nbsp;folder</span></div></li>
<li><div class="src-line"><a name="a1989"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;or&nbsp;a&nbsp;string&nbsp;to&nbsp;be&nbsp;added&nbsp;as&nbsp;file.&nbsp;For&nbsp;any&nbsp;other&nbsp;type&nbsp;of&nbsp;files&nbsp;(link,&nbsp;other)</span></div></li>
<li><div class="src-line"><a name="a1990"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;just&nbsp;ignore&nbsp;the&nbsp;item.</span></div></li>
<li><div class="src-line"><a name="a1991"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Then&nbsp;prepare&nbsp;the&nbsp;information&nbsp;that&nbsp;will&nbsp;be&nbsp;stored&nbsp;for&nbsp;that&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a1992"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;When&nbsp;its&nbsp;a&nbsp;folder,&nbsp;expand&nbsp;the&nbsp;folder&nbsp;with&nbsp;all&nbsp;the&nbsp;files&nbsp;that&nbsp;are&nbsp;in&nbsp;that&nbsp;</span></div></li>
<li><div class="src-line"><a name="a1993"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;folder&nbsp;(recursively).</span></div></li>
<li><div class="src-line"><a name="a1994"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1995"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a1996"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success.</span></div></li>
<li><div class="src-line"><a name="a1997"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;failure.</span></div></li>
<li><div class="src-line"><a name="a1998"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a1999"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivFileDescrExpand">privFileDescrExpand</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2000"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2001"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2002"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2003"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;a&nbsp;result&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2004"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2005"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2006"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;each&nbsp;entry</span></div></li>
<li><div class="src-line"><a name="a2007"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2008"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2009"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;filedescr</span></div></li>
<li><div class="src-line"><a name="a2010"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_descr&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2011"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2012"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reduce&nbsp;the&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2013"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2014"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2015"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2016"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;real&nbsp;file&nbsp;or&nbsp;folder</span></div></li>
<li><div class="src-line"><a name="a2017"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2018"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2019"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'file'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2020"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2021"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/is_dir">is_dir</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2022"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'folder'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2023"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2024"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/is_link">is_link</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2025"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;skip</span></div></li>
<li><div class="src-line"><a name="a2026"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">continue</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2027"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2028"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2029"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;skip</span></div></li>
<li><div class="src-line"><a name="a2030"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">continue</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2031"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2032"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2033"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2034"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;string&nbsp;added&nbsp;as&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2035"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2036"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'virtual_file'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2037"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2038"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2039"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Missing&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2040"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2041"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a2042"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_FILE">PCLZIP_ERR_MISSING_FILE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;File&nbsp;'&quot;</span>.<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;does&nbsp;not&nbsp;exist&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2043"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2044"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2045"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2046"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2047"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2048"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;stored&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2049"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCalculateStoredFilename">privCalculateStoredFilename</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2050"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2051"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Add&nbsp;the&nbsp;descriptor&nbsp;in&nbsp;result&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2052"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">[</span><a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">)</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2053"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2054"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;folder</span></div></li>
<li><div class="src-line"><a name="a2055"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'folder'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2056"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;List&nbsp;of&nbsp;items&nbsp;in&nbsp;folder</span></div></li>
<li><div class="src-line"><a name="a2057"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dirlist_descr&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2058"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dirlist_nb&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2059"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_folder_handler&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/opendir">opendir</a><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2060"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_item_handler&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/readdir">readdir</a><span class="src-sym">(</span><span class="src-var">$v_folder_handler</span><span class="src-sym">))&nbsp;</span>!==&nbsp;<span class="src-id">false</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2061"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2062"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Skip&nbsp;'.'&nbsp;and&nbsp;'..'</span></div></li>
<li><div class="src-line"><a name="a2063"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_item_handler&nbsp;</span>==&nbsp;<span class="src-str">'.'</span><span class="src-sym">)&nbsp;</span>||&nbsp;<span class="src-sym">(</span><span class="src-var">$v_item_handler&nbsp;</span>==&nbsp;<span class="src-str">'..'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2064"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">continue</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2065"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2066"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2067"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Compose&nbsp;the&nbsp;full&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2068"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dirlist_descr</span><span class="src-sym">[</span><span class="src-var">$v_dirlist_nb</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">'/'</span>.<span class="src-var">$v_item_handler</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2069"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2070"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;different&nbsp;stored&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2071"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Because&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;folder&nbsp;was&nbsp;changed,&nbsp;the&nbsp;name&nbsp;of&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a2072"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;files/sub-folders&nbsp;also&nbsp;change</span></div></li>
<li><div class="src-line"><a name="a2073"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2074"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">)))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2075"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2076"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dirlist_descr</span><span class="src-sym">[</span><span class="src-var">$v_dirlist_nb</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'new_full_name'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_descr</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span>.<span class="src-str">'/'</span>.<span class="src-var">$v_item_handler</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2077"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2078"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2079"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dirlist_descr</span><span class="src-sym">[</span><span class="src-var">$v_dirlist_nb</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'new_full_name'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_item_handler</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2080"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2081"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2082"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2083"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dirlist_nb</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2084"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2085"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2086"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/closedir">closedir</a><span class="src-sym">(</span><span class="src-var">$v_folder_handler</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2087"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2088"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2089"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;unable&nbsp;to&nbsp;open&nbsp;folder&nbsp;in&nbsp;read&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a2090"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2091"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2092"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Expand&nbsp;each&nbsp;element&nbsp;of&nbsp;the&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2093"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_dirlist_nb&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2094"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Expand</span></div></li>
<li><div class="src-line"><a name="a2095"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivFileDescrExpand">privFileDescrExpand</a><span class="src-sym">(</span><span class="src-var">$v_dirlist_descr</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2096"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2097"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2098"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2099"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Concat&nbsp;the&nbsp;resulting&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2100"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/array_merge">array_merge</a><span class="src-sym">(</span><span class="src-var">$v_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_dirlist_descr</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2101"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2102"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2103"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2104"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2105"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Free&nbsp;local&nbsp;array</span></div></li>
<li><div class="src-line"><a name="a2106"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_dirlist_descr</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2107"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2108"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2109"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2110"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;result&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2111"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr_list&nbsp;</span>=&nbsp;<span class="src-var">$v_result_list</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2112"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2113"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2114"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2115"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2116"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2117"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2118"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2119"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privCreate()</span></div></li>
<li><div class="src-line"><a name="a2120"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2121"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2122"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2123"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2124"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivCreate">privCreate</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2125"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2126"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2127"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list_detail&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2128"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2129"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a2130"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDisableMagicQuotes">privDisableMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2131"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2132"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;file&nbsp;in&nbsp;write&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a2133"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2134"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2135"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2136"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2137"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2138"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2139"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Add&nbsp;the&nbsp;list&nbsp;of&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a2140"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivAddList">privAddList</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2141"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2142"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close</span></div></li>
<li><div class="src-line"><a name="a2143"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2144"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2145"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a2146"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2147"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2148"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2149"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2150"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2151"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2152"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2153"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2154"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privAdd()</span></div></li>
<li><div class="src-line"><a name="a2155"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2156"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2157"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2158"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2159"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivAdd">privAdd</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2160"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2161"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2162"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list_detail&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2163"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2164"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;archive&nbsp;exists&nbsp;or&nbsp;is&nbsp;empty</span></div></li>
<li><div class="src-line"><a name="a2165"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-sym">!</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">))&nbsp;</span>||&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a2166"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2167"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2168"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Do&nbsp;a&nbsp;create</span></div></li>
<li><div class="src-line"><a name="a2169"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCreate">privCreate</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2170"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2171"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2172"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2173"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2174"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a2175"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDisableMagicQuotes">privDisableMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2176"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2177"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2178"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result</span>=<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2179"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2180"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a2181"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2182"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2183"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2184"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2185"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2186"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2187"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;central&nbsp;directory&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a2188"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_central_dir&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2189"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadEndCentralDir">privReadEndCentralDir</a><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2190"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2191"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2192"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2193"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2194"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2195"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2196"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;to&nbsp;beginning&nbsp;of&nbsp;File</span></div></li>
<li><div class="src-line"><a name="a2197"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2198"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2199"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Creates&nbsp;a&nbsp;temporay&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2200"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_zip_temp_name&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_TEMPORARY_DIR">PCLZIP_TEMPORARY_DIR</a></span>.<a href="http://www.php.net/uniqid">uniqid</a><span class="src-sym">(</span><span class="src-str">'pclzip-'</span><span class="src-sym">)</span>.<span class="src-str">'.tmp'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2201"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2202"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;temporary&nbsp;file&nbsp;in&nbsp;write&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a2203"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_zip_temp_fd&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2204"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2205"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2206"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2207"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2208"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_zip_temp_name</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;write&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2209"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2210"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2211"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2212"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2213"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2214"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Copy&nbsp;the&nbsp;files&nbsp;from&nbsp;the&nbsp;archive&nbsp;to&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2215"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;Here&nbsp;I&nbsp;should&nbsp;better&nbsp;append&nbsp;the&nbsp;file&nbsp;and&nbsp;go&nbsp;back&nbsp;to&nbsp;erase&nbsp;the&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a2216"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2217"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2218"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2219"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2220"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2221"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2222"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2223"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2224"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2225"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Swap&nbsp;the&nbsp;file&nbsp;descriptor</span></div></li>
<li><div class="src-line"><a name="a2226"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;is&nbsp;a&nbsp;trick&nbsp;:&nbsp;I&nbsp;swap&nbsp;the&nbsp;temporary&nbsp;fd&nbsp;with&nbsp;the&nbsp;zip&nbsp;fd,&nbsp;in&nbsp;order&nbsp;to&nbsp;use</span></div></li>
<li><div class="src-line"><a name="a2227"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;the&nbsp;following&nbsp;methods&nbsp;on&nbsp;the&nbsp;temporary&nbsp;fil&nbsp;and&nbsp;not&nbsp;the&nbsp;real&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a2228"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_swap&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2229"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-var">$v_zip_temp_fd</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2230"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_zip_temp_fd&nbsp;</span>=&nbsp;<span class="src-var">$v_swap</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2231"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2232"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Add&nbsp;the&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a2233"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2234"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivAddFileList">privAddFileList</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_header_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2235"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2236"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2237"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2238"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2239"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2240"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2241"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2242"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2243"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2244"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2245"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;offset&nbsp;of&nbsp;the&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a2246"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_offset&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2247"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2248"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Copy&nbsp;the&nbsp;block&nbsp;of&nbsp;file&nbsp;headers&nbsp;from&nbsp;the&nbsp;old&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a2249"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2250"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2251"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2252"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2253"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2254"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2255"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2256"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2257"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2258"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;Central&nbsp;Dir&nbsp;files&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a2259"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_count</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2260"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2261"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a2262"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'ok'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2263"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralFileHeader">privWriteCentralFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2264"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2265"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2266"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2267"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2268"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2269"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2270"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2271"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2272"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_count</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2273"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2274"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2275"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Transform&nbsp;the&nbsp;header&nbsp;to&nbsp;a&nbsp;'usable'&nbsp;info</span></div></li>
<li><div class="src-line"><a name="a2276"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2277"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2278"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2279"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Zip&nbsp;file&nbsp;comment</span></div></li>
<li><div class="src-line"><a name="a2280"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2281"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2282"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2283"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2284"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_COMMENT">PCLZIP_OPT_ADD_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2285"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-var">$v_comment</span>.<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_COMMENT">PCLZIP_OPT_ADD_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2286"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2287"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PREPEND_COMMENT">PCLZIP_OPT_PREPEND_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2288"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_PREPEND_COMMENT">PCLZIP_OPT_PREPEND_COMMENT</a></span><span class="src-sym">]</span>.<span class="src-var">$v_comment</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2289"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2290"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2291"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;central&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a2292"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span>-<span class="src-var">$v_offset</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2293"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2294"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;central&nbsp;dir&nbsp;footer</span></div></li>
<li><div class="src-line"><a name="a2295"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralHeader">privWriteCentralHeader</a><span class="src-sym">(</span><span class="src-var">$v_count</span>+<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_offset</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_comment</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2296"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2297"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;file&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2298"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2299"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2300"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2301"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2302"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2303"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2304"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2305"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Swap&nbsp;back&nbsp;the&nbsp;file&nbsp;descriptor</span></div></li>
<li><div class="src-line"><a name="a2306"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_swap&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2307"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-var">$v_zip_temp_fd</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2308"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_zip_temp_fd&nbsp;</span>=&nbsp;<span class="src-var">$v_swap</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2309"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2310"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close</span></div></li>
<li><div class="src-line"><a name="a2311"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2312"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2313"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2314"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2315"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2316"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a2317"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2318"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2319"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Delete&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2320"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;I&nbsp;should&nbsp;test&nbsp;the&nbsp;result&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a2321"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2322"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2323"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Rename&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2324"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;I&nbsp;should&nbsp;test&nbsp;the&nbsp;result&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a2325"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//@rename($v_zip_temp_name,&nbsp;$this-&gt;zipname);</span></div></li>
<li><div class="src-line"><a name="a2326"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilRename">PclZipUtilRename</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2327"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2328"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2329"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2330"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2331"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2332"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2333"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2334"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privOpenFd()</span></div></li>
<li><div class="src-line"><a name="a2335"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2336"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2337"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2338"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-var">$p_mode</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2339"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2340"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2341"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2342"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;already&nbsp;open</span></div></li>
<li><div class="src-line"><a name="a2343"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2344"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2345"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a2346"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Zip&nbsp;file&nbsp;\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">'\'&nbsp;already&nbsp;open'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2347"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2348"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2349"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2350"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2351"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2352"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2353"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_mode</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2354"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2355"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a2356"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;archive&nbsp;\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">'\'&nbsp;in&nbsp;'</span>.<span class="src-var">$p_mode</span>.<span class="src-str">'&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2357"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2358"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2359"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2360"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2361"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2362"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2363"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2364"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2365"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2366"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2367"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2368"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privCloseFd()</span></div></li>
<li><div class="src-line"><a name="a2369"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2370"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2371"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2372"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2373"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2374"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2375"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2376"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2377"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2378"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2379"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2380"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2381"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2382"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2383"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2384"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2385"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2386"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privAddList()</span></div></li>
<li><div class="src-line"><a name="a2387"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2388"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_add_dir&nbsp;and&nbsp;$p_remove_dir&nbsp;will&nbsp;give&nbsp;the&nbsp;ability&nbsp;to&nbsp;memorize&nbsp;a&nbsp;path&nbsp;which&nbsp;is</span></div></li>
<li><div class="src-line"><a name="a2389"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;different&nbsp;from&nbsp;the&nbsp;real&nbsp;path&nbsp;of&nbsp;the&nbsp;file.&nbsp;This&nbsp;is&nbsp;usefull&nbsp;if&nbsp;you&nbsp;want&nbsp;to&nbsp;have&nbsp;PclTar</span></div></li>
<li><div class="src-line"><a name="a2390"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;running&nbsp;in&nbsp;any&nbsp;directory,&nbsp;and&nbsp;memorize&nbsp;relative&nbsp;path&nbsp;from&nbsp;an&nbsp;other&nbsp;directory.</span></div></li>
<li><div class="src-line"><a name="a2391"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2392"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_list&nbsp;:&nbsp;An&nbsp;array&nbsp;containing&nbsp;the&nbsp;file&nbsp;or&nbsp;directory&nbsp;names&nbsp;to&nbsp;add&nbsp;in&nbsp;the&nbsp;tar</span></div></li>
<li><div class="src-line"><a name="a2393"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_result_list&nbsp;:&nbsp;list&nbsp;of&nbsp;added&nbsp;files&nbsp;with&nbsp;their&nbsp;properties&nbsp;(specially&nbsp;the&nbsp;status&nbsp;field)</span></div></li>
<li><div class="src-line"><a name="a2394"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_add_dir&nbsp;:&nbsp;Path&nbsp;to&nbsp;add&nbsp;in&nbsp;the&nbsp;filename&nbsp;path&nbsp;archived</span></div></li>
<li><div class="src-line"><a name="a2395"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_remove_dir&nbsp;:&nbsp;Path&nbsp;to&nbsp;remove&nbsp;in&nbsp;the&nbsp;filename&nbsp;path&nbsp;archived</span></div></li>
<li><div class="src-line"><a name="a2396"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2397"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2398"></a><span class="src-comm">//&nbsp;&nbsp;function&nbsp;privAddList($p_list,&nbsp;&amp;$p_result_list,&nbsp;$p_add_dir,&nbsp;$p_remove_dir,&nbsp;$p_remove_all_dir,&nbsp;&amp;$p_options)</span></div></li>
<li><div class="src-line"><a name="a2399"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivAddList">privAddList</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2400"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2401"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2402"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2403"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Add&nbsp;the&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a2404"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2405"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivAddFileList">privAddFileList</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_header_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2406"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2407"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2408"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2409"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2410"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2411"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;offset&nbsp;of&nbsp;the&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a2412"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_offset&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2413"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2414"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;Central&nbsp;Dir&nbsp;files&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a2415"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">,</span><span class="src-var">$v_count</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2416"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2417"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a2418"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'ok'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2419"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralFileHeader">privWriteCentralFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2420"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2421"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2422"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2423"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_count</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2424"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2425"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2426"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Transform&nbsp;the&nbsp;header&nbsp;to&nbsp;a&nbsp;'usable'&nbsp;info</span></div></li>
<li><div class="src-line"><a name="a2427"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2428"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2429"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2430"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Zip&nbsp;file&nbsp;comment</span></div></li>
<li><div class="src-line"><a name="a2431"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2432"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2433"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2434"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2435"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2436"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;central&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a2437"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span>-<span class="src-var">$v_offset</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2438"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2439"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;central&nbsp;dir&nbsp;footer</span></div></li>
<li><div class="src-line"><a name="a2440"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralHeader">privWriteCentralHeader</a><span class="src-sym">(</span><span class="src-var">$v_count</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_offset</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_comment</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2441"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2442"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;file&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2443"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2444"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2445"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2446"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2447"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2448"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2449"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2450"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2451"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2452"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2453"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2454"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2455"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privAddFileList()</span></div></li>
<li><div class="src-line"><a name="a2456"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2457"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2458"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_filedescr_list&nbsp;:&nbsp;An&nbsp;array&nbsp;containing&nbsp;the&nbsp;file&nbsp;description&nbsp;</span></div></li>
<li><div class="src-line"><a name="a2459"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or&nbsp;directory&nbsp;names&nbsp;to&nbsp;add&nbsp;in&nbsp;the&nbsp;zip</span></div></li>
<li><div class="src-line"><a name="a2460"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_result_list&nbsp;:&nbsp;list&nbsp;of&nbsp;added&nbsp;files&nbsp;with&nbsp;their&nbsp;properties&nbsp;(specially&nbsp;the&nbsp;status&nbsp;field)</span></div></li>
<li><div class="src-line"><a name="a2461"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2462"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2463"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivAddFileList">privAddFileList</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2464"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2465"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2466"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2467"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2468"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Recuperate&nbsp;the&nbsp;current&nbsp;number&nbsp;of&nbsp;elt&nbsp;in&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a2469"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_nb&nbsp;</span>=&nbsp;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$p_result_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2470"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2471"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Loop&nbsp;on&nbsp;the&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a2472"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_result</span>==<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$j</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2473"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Format&nbsp;the&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2474"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span></div></li>
<li><div class="src-line"><a name="a2475"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2476"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2477"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2478"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Skip&nbsp;empty&nbsp;file&nbsp;names</span></div></li>
<li><div class="src-line"><a name="a2479"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;Can&nbsp;this&nbsp;be&nbsp;possible&nbsp;?&nbsp;not&nbsp;checked&nbsp;in&nbsp;DescrParseAtt&nbsp;?</span></div></li>
<li><div class="src-line"><a name="a2480"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2481"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">continue</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2482"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2483"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2484"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2485"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">'virtual_file'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2486"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2487"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_MISSING_FILE">PCLZIP_ERR_MISSING_FILE</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;File&nbsp;'&quot;</span>.<span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;does&nbsp;not&nbsp;exist&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2488"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2489"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2490"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2491"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;it&nbsp;is&nbsp;a&nbsp;file&nbsp;or&nbsp;a&nbsp;dir&nbsp;with&nbsp;no&nbsp;all&nbsp;path&nbsp;remove&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a2492"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;or&nbsp;a&nbsp;dir&nbsp;with&nbsp;all&nbsp;its&nbsp;path&nbsp;removed</span></div></li>
<li><div class="src-line"><a name="a2493"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;&nbsp;&nbsp;(is_file($p_filedescr_list[$j]['filename']))</span></div></li>
<li><div class="src-line"><a name="a2494"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;(&nbsp;&nbsp;&nbsp;is_dir($p_filedescr_list[$j]['filename'])</span></div></li>
<li><div class="src-line"><a name="a2495"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'file'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2496"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'virtual_file'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2497"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'folder'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2498"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(&nbsp;&nbsp;&nbsp;</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2499"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">!</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a2500"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2501"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2502"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Add&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2503"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivAddFile">privAddFile</a><span class="src-sym">(</span><span class="src-var">$p_filedescr_list</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_header</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a2504"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2505"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2506"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2507"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2508"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2509"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;file&nbsp;infos</span></div></li>
<li><div class="src-line"><a name="a2510"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_result_list</span><span class="src-sym">[</span><span class="src-var">$v_nb</span>++<span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_header</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2511"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2512"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2513"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2514"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2515"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2516"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2517"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2518"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2519"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2520"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privAddFile()</span></div></li>
<li><div class="src-line"><a name="a2521"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2522"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2523"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2524"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2525"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivAddFile">privAddFile</a><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_header</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2526"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2527"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2528"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2529"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Working&nbsp;variable</span></div></li>
<li><div class="src-line"><a name="a2530"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filename&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2531"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2532"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;Already&nbsp;done&nbsp;in&nbsp;the&nbsp;fileAtt&nbsp;check&nbsp;...&nbsp;?</span></div></li>
<li><div class="src-line"><a name="a2533"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filename&nbsp;</span>==&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2534"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a2535"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_PARAMETER">PCLZIP_ERR_INVALID_PARAMETER</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;file&nbsp;list&nbsp;parameter&nbsp;(invalid&nbsp;or&nbsp;empty&nbsp;list)&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2536"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2537"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2538"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2539"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2540"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2541"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;stored&nbsp;different&nbsp;filename&nbsp;</span></div></li>
<li><div class="src-line"><a name="a2542"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">/*&nbsp;TBC&nbsp;:&nbsp;Removed</span></div></li>
<li><div class="src-line"><a name="a2543"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($p_filedescr['stored_filename']))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a2544"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$v_stored_filename&nbsp;=&nbsp;$p_filedescr['stored_filename'];</span></div></li>
<li><div class="src-line"><a name="a2545"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a2546"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a2547"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$v_stored_filename&nbsp;=&nbsp;$p_filedescr['stored_filename'];</span></div></li>
<li><div class="src-line"><a name="a2548"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a2549"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a2550"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2551"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;file&nbsp;properties</span></div></li>
<li><div class="src-line"><a name="a2552"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/clearstatcache">clearstatcache</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2553"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'version'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">20</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2554"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'version_extracted'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">10</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2555"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2556"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2557"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2558"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2559"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2560"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2561"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'disk'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2562"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'internal'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2563"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2564"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_filename</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2565"></a><span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;Removed&nbsp;&nbsp;&nbsp;&nbsp;$p_header['stored_filename']&nbsp;=&nbsp;$v_stored_filename;</span></div></li>
<li><div class="src-line"><a name="a2566"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2567"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2568"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'ok'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2569"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'index'</span><span class="src-sym">]&nbsp;</span>=&nbsp;-<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2570"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2571"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;regular&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2572"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]</span>==<span class="src-str">'file'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2573"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0x00000000</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2574"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2575"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2576"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2577"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;regular&nbsp;folder</span></div></li>
<li><div class="src-line"><a name="a2578"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]</span>==<span class="src-str">'folder'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2579"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0x00000010</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2580"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/filemtime">filemtime</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2581"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2582"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2583"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2584"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;virtual&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2585"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'virtual_file'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0x00000000</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2587"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2588"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2589"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2590"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2591"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;filetime</span></div></li>
<li><div class="src-line"><a name="a2592"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2593"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2594"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2595"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'virtual_file'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2596"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/time">time</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2597"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2598"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2599"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/filemtime">filemtime</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2600"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2601"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2602"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;------&nbsp;Look&nbsp;for&nbsp;file&nbsp;comment</span></div></li>
<li><div class="src-line"><a name="a2603"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2604"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment_len'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2605"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2606"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2607"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2608"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment_len'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2609"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2610"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2611"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2612"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;pre-add&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a2613"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_ADD">PCLZIP_CB_PRE_ADD</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2614"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2615"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a2616"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2617"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2618"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2619"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a2620"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a2621"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a2622"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_PRE_ADD].'(PCLZIP_CB_PRE_ADD,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a2623"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_ADD">PCLZIP_CB_PRE_ADD</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_ADD">PCLZIP_CB_PRE_ADD</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2624"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2625"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a2626"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;skipped&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2627"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2628"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2629"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2630"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Update&nbsp;the&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a2631"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Only&nbsp;some&nbsp;fields&nbsp;can&nbsp;be&nbsp;modified</span></div></li>
<li><div class="src-line"><a name="a2632"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2633"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2634"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2635"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2636"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2637"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;empty&nbsp;stored&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2638"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2639"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;filtered&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2640"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2641"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2642"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;path&nbsp;length</span></div></li>
<li><div class="src-line"><a name="a2643"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&gt;&nbsp;<span class="src-num">0xFF</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2644"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'filename_too_long'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2645"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2646"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2647"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;no&nbsp;error,&nbsp;or&nbsp;file&nbsp;not&nbsp;skipped</span></div></li>
<li><div class="src-line"><a name="a2648"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'ok'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2649"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2650"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2651"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'file'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2652"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;using&nbsp;temporary&nbsp;file&nbsp;to&nbsp;zip</span></div></li>
<li><div class="src-line"><a name="a2653"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span></div></li>
<li><div class="src-line"><a name="a2654"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a></span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2655"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2656"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]&nbsp;</span>&lt;=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;)&nbsp;)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2657"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivAddFileUsingTempFile">privAddFileUsingTempFile</a><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2658"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_NO_ERROR">PCLZIP_ERR_NO_ERROR</a></span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2659"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2660"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2661"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2662"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2663"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Use&nbsp;&quot;in&nbsp;memory&quot;&nbsp;zip&nbsp;algo</span></div></li>
<li><div class="src-line"><a name="a2664"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2665"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2666"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;source&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2667"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_file&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;rb&quot;</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2668"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;</span><span class="src-str">Unable&nbsp;to&nbsp;open&nbsp;file&nbsp;'<span class="src-var">$p_filename</span>'&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode</span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2669"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2670"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2671"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2672"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;content</span></div></li>
<li><div class="src-line"><a name="a2673"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_content&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2674"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2675"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2676"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2677"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2678"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;CRC</span></div></li>
<li><div class="src-line"><a name="a2679"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/crc32">crc32</a><span class="src-sym">(</span><span class="src-var">$v_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2680"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2681"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;no&nbsp;compression</span></div></li>
<li><div class="src-line"><a name="a2682"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_NO_COMPRESSION">PCLZIP_OPT_NO_COMPRESSION</a></span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2683"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;header&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a2684"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2685"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2686"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2687"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2688"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;normal&nbsp;compression</span></div></li>
<li><div class="src-line"><a name="a2689"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2690"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Compress&nbsp;the&nbsp;content</span></div></li>
<li><div class="src-line"><a name="a2691"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_content&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzdeflate">gzdeflate</a><span class="src-sym">(</span><span class="src-var">$v_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2692"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2693"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;header&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a2694"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2695"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">8</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2696"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2697"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2698"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;header&nbsp;generation</span></div></li>
<li><div class="src-line"><a name="a2699"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteFileHeader">privWriteFileHeader</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2700"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2701"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2702"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2703"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2704"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;compressed&nbsp;(or&nbsp;not)&nbsp;content</span></div></li>
<li><div class="src-line"><a name="a2705"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_content</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2706"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2707"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2708"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2709"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2710"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2711"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;virtual&nbsp;file&nbsp;(a&nbsp;file&nbsp;from&nbsp;string)</span></div></li>
<li><div class="src-line"><a name="a2712"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'virtual_file'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2713"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2714"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_content&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2715"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2716"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;CRC</span></div></li>
<li><div class="src-line"><a name="a2717"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/crc32">crc32</a><span class="src-sym">(</span><span class="src-var">$v_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2718"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2719"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;no&nbsp;compression</span></div></li>
<li><div class="src-line"><a name="a2720"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_NO_COMPRESSION">PCLZIP_OPT_NO_COMPRESSION</a></span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2721"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;header&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a2722"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2723"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2724"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2725"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2726"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;normal&nbsp;compression</span></div></li>
<li><div class="src-line"><a name="a2727"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2728"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Compress&nbsp;the&nbsp;content</span></div></li>
<li><div class="src-line"><a name="a2729"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_content&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzdeflate">gzdeflate</a><span class="src-sym">(</span><span class="src-var">$v_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2730"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2731"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;header&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a2732"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2733"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">8</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2734"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2735"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2736"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;header&nbsp;generation</span></div></li>
<li><div class="src-line"><a name="a2737"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteFileHeader">privWriteFileHeader</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2738"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2739"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2740"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2741"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2742"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;compressed&nbsp;(or&nbsp;not)&nbsp;content</span></div></li>
<li><div class="src-line"><a name="a2743"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_content</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2744"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2745"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2746"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a2747"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'folder'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2748"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;directory&nbsp;last&nbsp;'/'</span></div></li>
<li><div class="src-line"><a name="a2749"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">'/'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2750"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>.=&nbsp;<span class="src-str">'/'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2751"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2752"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2753"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;file&nbsp;properties</span></div></li>
<li><div class="src-line"><a name="a2754"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2755"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$p_header['external']&nbsp;=&nbsp;0x41FF0010;&nbsp;&nbsp;&nbsp;//&nbsp;Value&nbsp;for&nbsp;a&nbsp;folder&nbsp;:&nbsp;to&nbsp;be&nbsp;checked</span></div></li>
<li><div class="src-line"><a name="a2756"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0x00000010</span><span class="src-sym">;&nbsp;&nbsp;&nbsp;</span><span class="src-comm">//&nbsp;Value&nbsp;for&nbsp;a&nbsp;folder&nbsp;:&nbsp;to&nbsp;be&nbsp;checked</span></div></li>
<li><div class="src-line"><a name="a2757"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2758"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;header&nbsp;generation</span></div></li>
<li><div class="src-line"><a name="a2759"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteFileHeader">privWriteFileHeader</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2760"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2761"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2762"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2763"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2764"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2765"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2766"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;post-add&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a2767"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_ADD">PCLZIP_CB_POST_ADD</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2768"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2769"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a2770"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2771"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2772"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2773"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a2774"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a2775"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a2776"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_POST_ADD].'(PCLZIP_CB_POST_ADD,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a2777"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_ADD">PCLZIP_CB_POST_ADD</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_ADD">PCLZIP_CB_POST_ADD</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2778"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2779"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Ignored</span></div></li>
<li><div class="src-line"><a name="a2780"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2781"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2782"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2783"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Update&nbsp;the&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a2784"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Nothing&nbsp;can&nbsp;be&nbsp;modified</span></div></li>
<li><div class="src-line"><a name="a2785"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2786"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2787"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2788"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2789"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2790"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2791"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2792"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2793"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privAddFileUsingTempFile()</span></div></li>
<li><div class="src-line"><a name="a2794"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2795"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2796"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2797"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2798"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivAddFileUsingTempFile">privAddFileUsingTempFile</a><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_header</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2799"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2800"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_NO_ERROR">PCLZIP_ERR_NO_ERROR</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2801"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2802"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Working&nbsp;variable</span></div></li>
<li><div class="src-line"><a name="a2803"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filename&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2804"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2805"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2806"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;source&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2807"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_file&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;rb&quot;</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2808"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;</span><span class="src-str">Unable&nbsp;to&nbsp;open&nbsp;file&nbsp;'<span class="src-var">$p_filename</span>'&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode</span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2809"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2810"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2811"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2812"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Creates&nbsp;a&nbsp;compressed&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2813"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_gzip_temp_name&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_TEMPORARY_DIR">PCLZIP_TEMPORARY_DIR</a></span>.<a href="http://www.php.net/uniqid">uniqid</a><span class="src-sym">(</span><span class="src-str">'pclzip-'</span><span class="src-sym">)</span>.<span class="src-str">'.gz'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2814"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_file_compressed&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzopen">gzopen</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;wb&quot;</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2815"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2816"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_WRITE_OPEN_FAIL">PCLZIP_ERR_WRITE_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_gzip_temp_name</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;write&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2817"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2818"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2819"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2820"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;by&nbsp;PCLZIP_READ_BLOCK_SIZE&nbsp;octets&nbsp;blocks</span></div></li>
<li><div class="src-line"><a name="a2821"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2822"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2823"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2824"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2825"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$v_binary_data&nbsp;=&nbsp;pack('a'.$v_read_size,&nbsp;$v_buffer);</span></div></li>
<li><div class="src-line"><a name="a2826"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzputs">gzputs</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2827"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2828"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2829"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2830"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2831"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2832"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzclose">gzclose</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2833"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2834"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;minimum&nbsp;file&nbsp;size</span></div></li>
<li><div class="src-line"><a name="a2835"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">)&nbsp;</span>&lt;&nbsp;<span class="src-num">18</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2836"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'gzip&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_gzip_temp_name</span>.<span class="src-str">'\'&nbsp;has&nbsp;invalid&nbsp;filesize&nbsp;-&nbsp;should&nbsp;be&nbsp;minimum&nbsp;18&nbsp;bytes'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2837"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2838"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2839"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2840"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;the&nbsp;compressed&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a2841"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_file_compressed&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;rb&quot;</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2842"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_gzip_temp_name</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2843"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2844"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2845"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2846"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;gzip&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a2847"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">,&nbsp;</span><span class="src-num">10</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2848"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data_header&nbsp;</span>=&nbsp;<a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'a1id1/a1id2/a1cm/a1flag/Vmtime/a1xfl/a1os'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2849"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2850"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;some&nbsp;parameters</span></div></li>
<li><div class="src-line"><a name="a2851"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data_header</span><span class="src-sym">[</span><span class="src-str">'os'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/bin2hex">bin2hex</a><span class="src-sym">(</span><span class="src-var">$v_data_header</span><span class="src-sym">[</span><span class="src-str">'os'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2852"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2853"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;gzip&nbsp;file&nbsp;footer</span></div></li>
<li><div class="src-line"><a name="a2854"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">)</span>-<span class="src-num">8</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2855"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">,&nbsp;</span><span class="src-num">8</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2856"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data_footer&nbsp;</span>=&nbsp;<a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'Vcrc/Vcompressed_size'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2857"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2858"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a2859"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/ord">ord</a><span class="src-sym">(</span><span class="src-var">$v_data_header</span><span class="src-sym">[</span><span class="src-str">'cm'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2860"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$p_header['mtime']&nbsp;=&nbsp;$v_data_header['mtime'];</span></div></li>
<li><div class="src-line"><a name="a2861"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data_footer</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2862"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">)</span>-<span class="src-num">18</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2863"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2864"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2865"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2866"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2867"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;header&nbsp;generation</span></div></li>
<li><div class="src-line"><a name="a2868"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteFileHeader">privWriteFileHeader</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2869"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2870"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2871"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2872"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Add&nbsp;the&nbsp;compressed&nbsp;data</span></div></li>
<li><div class="src-line"><a name="a2873"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_file_compressed&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;rb&quot;</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2874"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2875"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_gzip_temp_name</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2876"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2877"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2878"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2879"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;by&nbsp;PCLZIP_READ_BLOCK_SIZE&nbsp;octets&nbsp;blocks</span></div></li>
<li><div class="src-line"><a name="a2880"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">,&nbsp;</span><span class="src-num">10</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2881"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2882"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2883"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2884"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2885"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2886"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$v_binary_data&nbsp;=&nbsp;pack('a'.$v_read_size,&nbsp;$v_buffer);</span></div></li>
<li><div class="src-line"><a name="a2887"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2888"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2889"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2890"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2891"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2892"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file_compressed</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2893"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2894"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Unlink&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a2895"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2896"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2897"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a2898"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2899"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2900"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2901"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2902"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2903"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privCalculateStoredFilename()</span></div></li>
<li><div class="src-line"><a name="a2904"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2905"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Based&nbsp;on&nbsp;file&nbsp;descriptor&nbsp;properties&nbsp;and&nbsp;global&nbsp;options,&nbsp;this&nbsp;method</span></div></li>
<li><div class="src-line"><a name="a2906"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;calculate&nbsp;the&nbsp;filename&nbsp;that&nbsp;will&nbsp;be&nbsp;stored&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a2907"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2908"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a2909"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a2910"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivCalculateStoredFilename">privCalculateStoredFilename</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_filedescr</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2911"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2912"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2913"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2914"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Working&nbsp;variables</span></div></li>
<li><div class="src-line"><a name="a2915"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filename&nbsp;</span>=&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2916"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2917"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_add_dir&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_ADD_PATH">PCLZIP_OPT_ADD_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2918"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2919"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2920"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_add_dir&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2921"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2922"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2923"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_dir&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_PATH">PCLZIP_OPT_REMOVE_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2924"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2925"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2926"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_dir&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2927"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2928"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2929"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_all_dir&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REMOVE_ALL_PATH">PCLZIP_OPT_REMOVE_ALL_PATH</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2930"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2931"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2932"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_all_dir&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2933"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2934"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2935"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2936"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;full&nbsp;name&nbsp;change</span></div></li>
<li><div class="src-line"><a name="a2937"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_full_name'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2938"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;drive&nbsp;letter&nbsp;if&nbsp;any</span></div></li>
<li><div class="src-line"><a name="a2939"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_full_name'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2940"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2941"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2942"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;path&nbsp;and/or&nbsp;short&nbsp;name&nbsp;change</span></div></li>
<li><div class="src-line"><a name="a2943"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2944"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2945"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;short&nbsp;name&nbsp;change</span></div></li>
<li><div class="src-line"><a name="a2946"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Its&nbsp;when&nbsp;we&nbsp;cahnge&nbsp;just&nbsp;the&nbsp;filename&nbsp;but&nbsp;not&nbsp;the&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a2947"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_short_name'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2948"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_path_info&nbsp;</span>=&nbsp;<a href="http://www.php.net/pathinfo">pathinfo</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2949"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dir&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2950"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_path_info</span><span class="src-sym">[</span><span class="src-str">'dirname'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2951"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dir&nbsp;</span>=&nbsp;<span class="src-var">$v_path_info</span><span class="src-sym">[</span><span class="src-str">'dirname'</span><span class="src-sym">]</span>.<span class="src-str">'/'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2952"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2953"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<span class="src-var">$v_dir</span>.<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'new_short_name'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2954"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2955"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2956"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;stored&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a2957"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<span class="src-var">$p_filename</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2958"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2959"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2960"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;all&nbsp;path&nbsp;to&nbsp;remove</span></div></li>
<li><div class="src-line"><a name="a2961"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_remove_all_dir</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2962"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<a href="http://www.php.net/basename">basename</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2963"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2964"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;partial&nbsp;path&nbsp;remove</span></div></li>
<li><div class="src-line"><a name="a2965"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_remove_dir&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2966"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_remove_dir</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">'/'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2967"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_dir&nbsp;</span>.=&nbsp;<span class="src-str">&quot;/&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2968"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2969"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;./&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2970"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_remove_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;./&quot;</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2971"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2972"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;./&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2973"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_remove_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">&quot;./&quot;</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2974"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_dir&nbsp;</span>=&nbsp;<span class="src-str">&quot;./&quot;</span>.<span class="src-var">$p_remove_dir</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2975"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2976"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_filename</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">&quot;./&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a2977"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_remove_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;./&quot;</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2978"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_dir&nbsp;</span>=&nbsp;<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_remove_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2979"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2980"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2981"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a2982"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_compare&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathInclusion">PclZipUtilPathInclusion</a><span class="src-sym">(</span><span class="src-var">$p_remove_dir</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a2983"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2984"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_compare&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2985"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_compare&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2986"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2987"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2988"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a2989"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$v_stored_filename</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a2990"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_remove_dir</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2991"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2992"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2993"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a2994"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2995"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;drive&nbsp;letter&nbsp;if&nbsp;any</span></div></li>
<li><div class="src-line"><a name="a2996"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><span class="src-var">$v_stored_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2997"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a2998"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;path&nbsp;to&nbsp;add</span></div></li>
<li><div class="src-line"><a name="a2999"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_add_dir&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3000"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_add_dir</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;/&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3001"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<span class="src-var">$p_add_dir</span>.<span class="src-var">$v_stored_filename</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3002"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a3003"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<span class="src-var">$p_add_dir</span>.<span class="src-str">&quot;/&quot;</span>.<span class="src-var">$v_stored_filename</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3004"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3005"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3006"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3007"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Filename&nbsp;(reduce&nbsp;the&nbsp;path&nbsp;of&nbsp;stored&nbsp;name)</span></div></li>
<li><div class="src-line"><a name="a3008"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_stored_filename&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$v_stored_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3009"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_filedescr</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_stored_filename</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3010"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3011"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3012"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3013"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3014"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3015"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3016"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3017"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privWriteFileHeader()</span></div></li>
<li><div class="src-line"><a name="a3018"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3019"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3020"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3021"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3022"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivWriteFileHeader">privWriteFileHeader</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_header</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3023"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3024"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3025"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3026"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;offset&nbsp;position&nbsp;of&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3027"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3028"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3029"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Transform&nbsp;UNIX&nbsp;mtime&nbsp;to&nbsp;DOS&nbsp;format&nbsp;mdate/mtime</span></div></li>
<li><div class="src-line"><a name="a3030"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_date&nbsp;</span>=&nbsp;<a href="http://www.php.net/getdate">getdate</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3031"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_mtime&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'hours'</span><span class="src-sym">]</span>&lt;&lt;<span class="src-num">11</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-sym">(</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'minutes'</span><span class="src-sym">]</span>&lt;&lt;<span class="src-num">5</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'seconds'</span><span class="src-sym">]</span>/<span class="src-num">2</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3032"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_mdate&nbsp;</span>=&nbsp;<span class="src-sym">((</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'year'</span><span class="src-sym">]</span>-<span class="src-num">1980</span><span class="src-sym">)</span>&lt;&lt;<span class="src-num">9</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-sym">(</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'mon'</span><span class="src-sym">]</span>&lt;&lt;<span class="src-num">5</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'mday'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3033"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3034"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Packed&nbsp;data</span></div></li>
<li><div class="src-line"><a name="a3035"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/pack">pack</a><span class="src-sym">(</span><span class="src-str">&quot;VvvvvvVVVvv&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-num">0x04034b50</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3036"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'version_extracted'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3037"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_mtime</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_mdate</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3038"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3039"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3040"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3041"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3042"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3043"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;first&nbsp;148&nbsp;bytes&nbsp;of&nbsp;the&nbsp;header&nbsp;in&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a3044"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">,&nbsp;</span><span class="src-num">30</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3045"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3046"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;variable&nbsp;fields</span></div></li>
<li><div class="src-line"><a name="a3047"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3048"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3049"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3050"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3051"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3052"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3053"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3054"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3055"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3056"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3057"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3058"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3059"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3060"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3061"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3062"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privWriteCentralFileHeader()</span></div></li>
<li><div class="src-line"><a name="a3063"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3064"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3065"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3066"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3067"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralFileHeader">privWriteCentralFileHeader</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_header</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3068"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3069"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3070"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3071"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a3072"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//for(reset($p_header);&nbsp;$key&nbsp;=&nbsp;key($p_header);&nbsp;next($p_header))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a3073"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//}</span></div></li>
<li><div class="src-line"><a name="a3074"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3075"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Transform&nbsp;UNIX&nbsp;mtime&nbsp;to&nbsp;DOS&nbsp;format&nbsp;mdate/mtime</span></div></li>
<li><div class="src-line"><a name="a3076"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_date&nbsp;</span>=&nbsp;<a href="http://www.php.net/getdate">getdate</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3077"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_mtime&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'hours'</span><span class="src-sym">]</span>&lt;&lt;<span class="src-num">11</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-sym">(</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'minutes'</span><span class="src-sym">]</span>&lt;&lt;<span class="src-num">5</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'seconds'</span><span class="src-sym">]</span>/<span class="src-num">2</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3078"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_mdate&nbsp;</span>=&nbsp;<span class="src-sym">((</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'year'</span><span class="src-sym">]</span>-<span class="src-num">1980</span><span class="src-sym">)</span>&lt;&lt;<span class="src-num">9</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-sym">(</span><span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'mon'</span><span class="src-sym">]</span>&lt;&lt;<span class="src-num">5</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-var">$v_date</span><span class="src-sym">[</span><span class="src-str">'mday'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3079"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3080"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3081"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Packed&nbsp;data</span></div></li>
<li><div class="src-line"><a name="a3082"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/pack">pack</a><span class="src-sym">(</span><span class="src-str">&quot;VvvvvvvVVVvvvvvVV&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-num">0x02014b50</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3083"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'version'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'version_extracted'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3084"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3085"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_mtime</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_mdate</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3086"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3087"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3088"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment_len'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3089"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'disk'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'internal'</span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3090"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3091"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3092"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;42&nbsp;bytes&nbsp;of&nbsp;the&nbsp;header&nbsp;in&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3093"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">,&nbsp;</span><span class="src-num">46</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3094"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3095"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;variable&nbsp;fields</span></div></li>
<li><div class="src-line"><a name="a3096"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3097"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3098"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3099"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3100"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3101"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3102"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3103"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3104"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3105"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3106"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3107"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3108"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3109"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3110"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3111"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3112"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3113"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3114"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3115"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privWriteCentralHeader()</span></div></li>
<li><div class="src-line"><a name="a3116"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3117"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3118"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3119"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3120"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralHeader">privWriteCentralHeader</a><span class="src-sym">(</span><span class="src-var">$p_nb_entries</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_offset</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_comment</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3121"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3122"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3123"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3124"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Packed&nbsp;data</span></div></li>
<li><div class="src-line"><a name="a3125"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/pack">pack</a><span class="src-sym">(</span><span class="src-str">&quot;VvvvvVVv&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-num">0x06054b50</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_nb_entries</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3126"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_nb_entries</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_size</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3127"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_offset</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_comment</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3128"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3129"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;22&nbsp;bytes&nbsp;of&nbsp;the&nbsp;header&nbsp;in&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3130"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">,&nbsp;</span><span class="src-num">22</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3131"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3132"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;variable&nbsp;fields</span></div></li>
<li><div class="src-line"><a name="a3133"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_comment</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3134"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3135"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fputs">fputs</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_comment</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_comment</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3136"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3137"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3138"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3139"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3140"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3141"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3142"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3143"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3144"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privList()</span></div></li>
<li><div class="src-line"><a name="a3145"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3146"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3147"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3148"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3149"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivList">privList</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_list</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3150"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3151"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3152"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3153"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a3154"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDisableMagicQuotes">privDisableMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3155"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3156"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3157"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">,&nbsp;</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3158"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3159"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a3160"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3161"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3162"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a3163"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;archive&nbsp;\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3164"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3165"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3166"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3167"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3168"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3169"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;central&nbsp;directory&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a3170"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_central_dir&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3171"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadEndCentralDir">privReadEndCentralDir</a><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3172"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3173"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3174"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3175"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3176"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3177"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;to&nbsp;beginning&nbsp;of&nbsp;Central&nbsp;Dir</span></div></li>
<li><div class="src-line"><a name="a3178"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3179"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3180"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3181"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3182"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3183"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a3184"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ARCHIVE_ZIP">PCLZIP_ERR_INVALID_ARCHIVE_ZIP</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Invalid&nbsp;archive&nbsp;size'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3185"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3186"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3187"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3188"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3189"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3190"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;each&nbsp;entry</span></div></li>
<li><div class="src-line"><a name="a3191"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3192"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3193"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a3194"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadCentralFileHeader">privReadCentralFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3195"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3196"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3197"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3198"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3199"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'index'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$i</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3200"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3201"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;only&nbsp;interesting&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a3202"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3203"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3204"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3205"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3206"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3207"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3208"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3209"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a3210"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3211"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3212"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3213"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3214"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3215"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3216"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3217"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3218"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privConvertHeader2FileInfo()</span></div></li>
<li><div class="src-line"><a name="a3219"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3220"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;takes&nbsp;the&nbsp;file&nbsp;informations&nbsp;from&nbsp;the&nbsp;central&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a3221"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;entries&nbsp;and&nbsp;extract&nbsp;the&nbsp;interesting&nbsp;parameters&nbsp;that&nbsp;will&nbsp;be&nbsp;given&nbsp;back.</span></div></li>
<li><div class="src-line"><a name="a3222"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;resulting&nbsp;file&nbsp;infos&nbsp;are&nbsp;set&nbsp;in&nbsp;the&nbsp;array&nbsp;$p_info</span></div></li>
<li><div class="src-line"><a name="a3223"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['filename']&nbsp;:&nbsp;Filename&nbsp;with&nbsp;full&nbsp;path.&nbsp;Given&nbsp;by&nbsp;user&nbsp;(add),</span></div></li>
<li><div class="src-line"><a name="a3224"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extracted&nbsp;in&nbsp;the&nbsp;filesystem&nbsp;(extract).</span></div></li>
<li><div class="src-line"><a name="a3225"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['stored_filename']&nbsp;:&nbsp;Stored&nbsp;filename&nbsp;in&nbsp;the&nbsp;archive.</span></div></li>
<li><div class="src-line"><a name="a3226"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['size']&nbsp;=&nbsp;Size&nbsp;of&nbsp;the&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a3227"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['compressed_size']&nbsp;=&nbsp;Compressed&nbsp;size&nbsp;of&nbsp;the&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a3228"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['mtime']&nbsp;=&nbsp;Last&nbsp;modification&nbsp;date&nbsp;of&nbsp;the&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a3229"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['comment']&nbsp;=&nbsp;Comment&nbsp;associated&nbsp;with&nbsp;the&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a3230"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['folder']&nbsp;=&nbsp;true/false&nbsp;:&nbsp;indicates&nbsp;if&nbsp;the&nbsp;entry&nbsp;is&nbsp;a&nbsp;folder&nbsp;or&nbsp;not.</span></div></li>
<li><div class="src-line"><a name="a3231"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['status']&nbsp;=&nbsp;status&nbsp;of&nbsp;the&nbsp;action&nbsp;on&nbsp;the&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a3232"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_info['crc']&nbsp;=&nbsp;CRC&nbsp;of&nbsp;the&nbsp;file&nbsp;content.</span></div></li>
<li><div class="src-line"><a name="a3233"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3234"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3235"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3236"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_info</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3237"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3238"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3239"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3240"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;interesting&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a3241"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_path&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3242"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_temp_path</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3243"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_path&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3244"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_temp_path</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3245"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3246"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3247"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3248"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3249"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'folder'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-sym">((</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3250"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'index'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'index'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3251"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3252"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_info</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3253"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3254"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3255"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3256"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3257"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3258"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3259"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3260"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privExtractByRule()</span></div></li>
<li><div class="src-line"><a name="a3261"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3262"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Extract&nbsp;a&nbsp;file&nbsp;or&nbsp;directory&nbsp;depending&nbsp;of&nbsp;rules&nbsp;(by&nbsp;index,&nbsp;by&nbsp;name,&nbsp;...)</span></div></li>
<li><div class="src-line"><a name="a3263"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3264"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_file_list&nbsp;:&nbsp;An&nbsp;array&nbsp;where&nbsp;will&nbsp;be&nbsp;placed&nbsp;the&nbsp;properties&nbsp;of&nbsp;each</span></div></li>
<li><div class="src-line"><a name="a3265"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extracted&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3266"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_path&nbsp;:&nbsp;Path&nbsp;to&nbsp;add&nbsp;while&nbsp;writing&nbsp;the&nbsp;extracted&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a3267"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_remove_path&nbsp;:&nbsp;Path&nbsp;to&nbsp;remove&nbsp;(from&nbsp;the&nbsp;file&nbsp;memorized&nbsp;path)&nbsp;while&nbsp;writing&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a3268"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extracted&nbsp;files.&nbsp;If&nbsp;the&nbsp;path&nbsp;does&nbsp;not&nbsp;match&nbsp;the&nbsp;file&nbsp;path,</span></div></li>
<li><div class="src-line"><a name="a3269"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;file&nbsp;is&nbsp;extracted&nbsp;with&nbsp;its&nbsp;memorized&nbsp;path.</span></div></li>
<li><div class="src-line"><a name="a3270"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_remove_path&nbsp;does&nbsp;not&nbsp;apply&nbsp;to&nbsp;'list'&nbsp;mode.</span></div></li>
<li><div class="src-line"><a name="a3271"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p_path&nbsp;and&nbsp;$p_remove_path&nbsp;are&nbsp;commulative.</span></div></li>
<li><div class="src-line"><a name="a3272"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3273"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success,0&nbsp;or&nbsp;less&nbsp;on&nbsp;error&nbsp;(see&nbsp;error&nbsp;code&nbsp;list)</span></div></li>
<li><div class="src-line"><a name="a3274"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3275"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivExtractByRule">privExtractByRule</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_file_list</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_all_path</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3276"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3277"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3278"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3279"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Magic&nbsp;quotes&nbsp;trick</span></div></li>
<li><div class="src-line"><a name="a3280"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDisableMagicQuotes">privDisableMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3281"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3282"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a3283"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$p_path&nbsp;</span>==&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3284"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">1</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">&quot;/&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3285"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">3</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">&quot;../&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3286"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,</span><span class="src-num">1</span><span class="src-sym">,</span><span class="src-num">2</span><span class="src-sym">)</span>!=<span class="src-str">&quot;:/&quot;</span><span class="src-sym">)))</span></div></li>
<li><div class="src-line"><a name="a3287"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_path&nbsp;</span>=&nbsp;<span class="src-str">&quot;./&quot;</span>.<span class="src-var">$p_path</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3288"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3289"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reduce&nbsp;the&nbsp;path&nbsp;last&nbsp;(and&nbsp;duplicated)&nbsp;'/'</span></div></li>
<li><div class="src-line"><a name="a3290"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_path&nbsp;</span>!=&nbsp;<span class="src-str">&quot;./&quot;</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_path&nbsp;</span>!=&nbsp;<span class="src-str">&quot;/&quot;</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3291"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3292"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;the&nbsp;path&nbsp;end&nbsp;'/'</span></div></li>
<li><div class="src-line"><a name="a3293"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;/&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3294"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3295"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_path&nbsp;</span>=&nbsp;<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">)</span>-<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3296"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3297"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3298"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3299"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;path&nbsp;to&nbsp;remove&nbsp;format&nbsp;(should&nbsp;end&nbsp;by&nbsp;/)</span></div></li>
<li><div class="src-line"><a name="a3300"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_remove_path&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_remove_path</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-str">'/'</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3301"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3302"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_path&nbsp;</span>.=&nbsp;<span class="src-str">'/'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3303"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3304"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_path_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_remove_path</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3305"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3306"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3307"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3308"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3309"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3310"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3311"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3312"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3313"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;central&nbsp;directory&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a3314"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_central_dir&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3315"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadEndCentralDir">privReadEndCentralDir</a><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3316"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3317"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3318"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3319"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3320"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3321"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3322"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3323"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3324"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Start&nbsp;at&nbsp;beginning&nbsp;of&nbsp;Central&nbsp;Dir</span></div></li>
<li><div class="src-line"><a name="a3325"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_pos_entry&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3326"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3327"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;each&nbsp;entry</span></div></li>
<li><div class="src-line"><a name="a3328"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$j_start&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3329"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_nb_extracted</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3330"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3331"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3332"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;next&nbsp;Central&nbsp;dir&nbsp;entry</span></div></li>
<li><div class="src-line"><a name="a3333"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3334"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_pos_entry</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3335"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3336"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3337"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3338"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3339"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3340"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a3341"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ARCHIVE_ZIP">PCLZIP_ERR_INVALID_ARCHIVE_ZIP</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Invalid&nbsp;archive&nbsp;size'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3342"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3343"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3344"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3345"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3346"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3347"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a3348"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3349"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadCentralFileHeader">privReadCentralFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3350"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3351"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3352"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3353"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3354"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3355"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3356"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3357"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3358"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;index</span></div></li>
<li><div class="src-line"><a name="a3359"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'index'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$i</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3360"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3361"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;file&nbsp;position</span></div></li>
<li><div class="src-line"><a name="a3362"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_pos_entry&nbsp;</span>=&nbsp;<a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3363"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3364"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;the&nbsp;specific&nbsp;extract&nbsp;rules</span></div></li>
<li><div class="src-line"><a name="a3365"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_extract&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3366"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3367"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;name&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a3368"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3369"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3370"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3371"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;filename&nbsp;is&nbsp;in&nbsp;the&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a3372"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$v_extract</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$j</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3373"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3374"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a3375"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;/&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3376"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3377"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;directory&nbsp;is&nbsp;in&nbsp;the&nbsp;filename&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a3378"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&gt;&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3379"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3380"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_extract&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3381"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3382"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3383"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a3384"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3385"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_extract&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3386"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3387"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3388"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3389"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3390"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;ereg&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a3391"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;ereg()&nbsp;is&nbsp;deprecated&nbsp;with&nbsp;PHP&nbsp;5.3</span></div></li>
<li><div class="src-line"><a name="a3392"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">/*&nbsp;</span></div></li>
<li><div class="src-line"><a name="a3393"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if&nbsp;(&nbsp;&nbsp;&nbsp;(isset($p_options[PCLZIP_OPT_BY_EREG]))</span></div></li>
<li><div class="src-line"><a name="a3394"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;($p_options[PCLZIP_OPT_BY_EREG]&nbsp;!=&nbsp;&quot;&quot;))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a3395"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3396"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(ereg($p_options[PCLZIP_OPT_BY_EREG],&nbsp;$v_header['stored_filename']))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a3397"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$v_extract&nbsp;=&nbsp;true;</span></div></li>
<li><div class="src-line"><a name="a3398"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a3399"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a3400"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a3401"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3402"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;preg&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a3403"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3404"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a></span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3405"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3406"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a></span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3407"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_extract&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3408"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3409"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3410"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3411"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;index&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a3412"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3413"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3414"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3415"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;index&nbsp;is&nbsp;in&nbsp;the&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a3416"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>=<span class="src-var">$j_start</span><span class="src-sym">;&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$v_extract</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$j</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3417"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3418"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>&gt;=<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$i</span>&lt;=<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'end'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3419"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_extract&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3420"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3421"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>&gt;=<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'end'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3422"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$j_start&nbsp;</span>=&nbsp;<span class="src-var">$j</span>+<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3423"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3424"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3425"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]</span>&gt;<span class="src-var">$i</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3426"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3427"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3428"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3429"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3430"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3431"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;no&nbsp;rule,&nbsp;which&nbsp;means&nbsp;extract&nbsp;all&nbsp;the&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a3432"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3433"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_extract&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3434"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3435"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3436"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;compression&nbsp;method</span></div></li>
<li><div class="src-line"><a name="a3437"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$v_extract</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3438"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">8</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3439"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3440"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'unsupported_compression'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3441"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3442"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;PCLZIP_OPT_STOP_ON_ERROR</span></div></li>
<li><div class="src-line"><a name="a3443"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3444"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span>===<span class="src-id">true</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3445"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3446"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3447"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3448"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_UNSUPPORTED_COMPRESSION">PCLZIP_ERR_UNSUPPORTED_COMPRESSION</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3449"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Filename&nbsp;'&quot;</span>.<span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;is&nbsp;&quot;</span></div></li>
<li><div class="src-line"><a name="a3450"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;compressed&nbsp;by&nbsp;an&nbsp;unsupported&nbsp;compression&nbsp;&quot;</span></div></li>
<li><div class="src-line"><a name="a3451"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;method&nbsp;(&quot;</span>.<span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]</span>.<span class="src-str">&quot;)&nbsp;&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3452"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3453"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3454"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3455"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3456"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3457"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;encrypted&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a3458"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_extract</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">((</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">1</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3459"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'unsupported_encryption'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3460"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3461"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;PCLZIP_OPT_STOP_ON_ERROR</span></div></li>
<li><div class="src-line"><a name="a3462"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3463"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span>===<span class="src-id">true</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3464"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3465"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3466"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3467"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_UNSUPPORTED_ENCRYPTION">PCLZIP_ERR_UNSUPPORTED_ENCRYPTION</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3468"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Unsupported&nbsp;encryption&nbsp;for&nbsp;&quot;</span></div></li>
<li><div class="src-line"><a name="a3469"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;&nbsp;filename&nbsp;'&quot;</span>.<span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span></div></li>
<li><div class="src-line"><a name="a3470"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;'&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3471"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3472"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3473"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3474"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3475"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3476"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;real&nbsp;extraction</span></div></li>
<li><div class="src-line"><a name="a3477"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_extract</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">'ok'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3478"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3479"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_file_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span>++<span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3480"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3481"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3482"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3483"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3484"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3485"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3486"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_extract&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3487"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3488"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3489"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;real&nbsp;extraction</span></div></li>
<li><div class="src-line"><a name="a3490"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_extract</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3491"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3492"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3493"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;to&nbsp;the&nbsp;file&nbsp;position</span></div></li>
<li><div class="src-line"><a name="a3494"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3495"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_header</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3496"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3497"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3498"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3499"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3500"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3501"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3502"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a3503"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ARCHIVE_ZIP">PCLZIP_ERR_INVALID_ARCHIVE_ZIP</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Invalid&nbsp;archive&nbsp;size'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3504"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3505"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3506"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3507"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3508"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3509"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extraction&nbsp;as&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a3510"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_AS_STRING">PCLZIP_OPT_EXTRACT_AS_STRING</a></span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3511"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3512"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_string&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3513"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3514"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extracting&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3515"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result1&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFileAsString">privExtractFileAsString</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_string</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3516"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result1&nbsp;</span>&lt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3517"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3518"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3519"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3520"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3521"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3522"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;only&nbsp;interesting&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a3523"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_file_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3524"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3525"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3526"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3527"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3528"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3529"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3530"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3531"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3532"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;file&nbsp;content</span></div></li>
<li><div class="src-line"><a name="a3533"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_file_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_string</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3534"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3535"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Next&nbsp;extracted&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3536"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_nb_extracted</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3537"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3538"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;user&nbsp;callback&nbsp;abort</span></div></li>
<li><div class="src-line"><a name="a3539"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result1&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3540"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3541"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3542"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3543"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extraction&nbsp;in&nbsp;standard&nbsp;output</span></div></li>
<li><div class="src-line"><a name="a3544"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_IN_OUTPUT">PCLZIP_OPT_EXTRACT_IN_OUTPUT</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3545"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_IN_OUTPUT">PCLZIP_OPT_EXTRACT_IN_OUTPUT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3546"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extracting&nbsp;the&nbsp;file&nbsp;in&nbsp;standard&nbsp;output</span></div></li>
<li><div class="src-line"><a name="a3547"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result1&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFileInOutput">privExtractFileInOutput</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3548"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result1&nbsp;</span>&lt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3549"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3550"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3551"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3552"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3553"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3554"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;only&nbsp;interesting&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a3555"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_file_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span>++<span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3556"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3557"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3558"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3559"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3560"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3561"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;user&nbsp;callback&nbsp;abort</span></div></li>
<li><div class="src-line"><a name="a3562"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result1&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3563"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3564"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3565"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3566"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;normal&nbsp;extraction</span></div></li>
<li><div class="src-line"><a name="a3567"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3568"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extracting&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3569"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result1&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFile">privExtractFile</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3570"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_path</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3571"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_all_path</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3572"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3573"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result1&nbsp;</span>&lt;&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3574"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3575"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3576"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3577"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3578"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3579"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;only&nbsp;interesting&nbsp;attributes</span></div></li>
<li><div class="src-line"><a name="a3580"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_file_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span>++<span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3581"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3582"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3583"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3584"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3585"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3587"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3588"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3589"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;user&nbsp;callback&nbsp;abort</span></div></li>
<li><div class="src-line"><a name="a3590"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result1&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3591"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3592"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3593"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3594"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3595"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3596"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3597"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3598"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3599"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3600"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3601"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3602"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3603"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3604"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3605"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3606"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3607"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privExtractFile()</span></div></li>
<li><div class="src-line"><a name="a3608"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3609"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3610"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3611"></a>&nbsp;&nbsp;<span class="src-comm">//</span></div></li>
<li><div class="src-line"><a name="a3612"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;1&nbsp;:&nbsp;...&nbsp;?</span></div></li>
<li><div class="src-line"><a name="a3613"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;PCLZIP_ERR_USER_ABORTED(2)&nbsp;:&nbsp;User&nbsp;ask&nbsp;for&nbsp;extraction&nbsp;stop&nbsp;in&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a3614"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3615"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFile">privExtractFile</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_all_path</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3616"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3617"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3618"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3619"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a3620"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadFileHeader">privReadFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3621"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3622"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3623"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3624"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3625"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3626"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3627"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;that&nbsp;the&nbsp;file&nbsp;header&nbsp;is&nbsp;coherent&nbsp;with&nbsp;$p_entry&nbsp;info</span></div></li>
<li><div class="src-line"><a name="a3628"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFileHeaders">privCheckFileHeaders</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3629"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a3630"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3631"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3632"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;all&nbsp;path&nbsp;to&nbsp;remove</span></div></li>
<li><div class="src-line"><a name="a3633"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_remove_all_path&nbsp;</span>==&nbsp;<span class="src-id">true</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3634"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;folder&nbsp;entry&nbsp;that&nbsp;not&nbsp;need&nbsp;to&nbsp;be&nbsp;extracted</span></div></li>
<li><div class="src-line"><a name="a3635"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3636"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3637"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;filtered&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3638"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3639"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3640"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3641"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3642"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;the&nbsp;basename&nbsp;of&nbsp;the&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a3643"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/basename">basename</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3644"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3645"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3646"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;path&nbsp;to&nbsp;remove</span></div></li>
<li><div class="src-line"><a name="a3647"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_remove_path&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3648"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3649"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathInclusion">PclZipUtilPathInclusion</a><span class="src-sym">(</span><span class="src-var">$p_remove_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3650"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3651"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3652"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3653"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;filtered&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3654"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3655"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3656"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3657"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3658"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3659"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_remove_path_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_remove_path</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3660"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_path_size</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-var">$p_remove_path</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3661"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3662"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3663"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;the&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a3664"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_path_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3665"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3666"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3667"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3668"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3669"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Add&nbsp;the&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a3670"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_path&nbsp;</span>!=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3671"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_path</span>.<span class="src-str">&quot;/&quot;</span>.<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3672"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3673"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3674"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;a&nbsp;base_dir_restriction</span></div></li>
<li><div class="src-line"><a name="a3675"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_DIR_RESTRICTION">PCLZIP_OPT_EXTRACT_DIR_RESTRICTION</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3676"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_inclusion</span></div></li>
<li><div class="src-line"><a name="a3677"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathInclusion">PclZipUtilPathInclusion</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_EXTRACT_DIR_RESTRICTION">PCLZIP_OPT_EXTRACT_DIR_RESTRICTION</a></span><span class="src-sym">]</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3678"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span></div></li>
<li><div class="src-line"><a name="a3679"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_inclusion&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3680"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3681"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_DIRECTORY_RESTRICTION">PCLZIP_ERR_DIRECTORY_RESTRICTION</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3682"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Filename&nbsp;'&quot;</span>.<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;is&nbsp;&quot;</span></div></li>
<li><div class="src-line"><a name="a3683"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;outside&nbsp;PCLZIP_OPT_EXTRACT_DIR_RESTRICTION&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3684"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3685"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3686"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3687"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3688"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3689"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;pre-extract&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a3690"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3691"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3692"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a3693"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3694"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3695"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3696"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a3697"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a3698"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a3699"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a3700"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3701"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3702"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3703"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;skipped&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3704"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3705"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3706"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3707"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;abort&nbsp;result</span></div></li>
<li><div class="src-line"><a name="a3708"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3709"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;This&nbsp;status&nbsp;is&nbsp;internal&nbsp;and&nbsp;will&nbsp;be&nbsp;changed&nbsp;in&nbsp;'skipped'</span></div></li>
<li><div class="src-line"><a name="a3710"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;aborted&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3711"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_USER_ABORTED">PCLZIP_ERR_USER_ABORTED</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3712"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3713"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3714"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Update&nbsp;the&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a3715"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Only&nbsp;some&nbsp;fields&nbsp;can&nbsp;be&nbsp;modified</span></div></li>
<li><div class="src-line"><a name="a3716"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3717"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3718"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3719"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3720"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;extraction&nbsp;should&nbsp;be&nbsp;done</span></div></li>
<li><div class="src-line"><a name="a3721"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'ok'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3722"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3723"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;specific&nbsp;actions&nbsp;while&nbsp;the&nbsp;file&nbsp;exist</span></div></li>
<li><div class="src-line"><a name="a3724"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3725"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3726"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3727"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;file&nbsp;is&nbsp;a&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a3728"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_dir">is_dir</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3729"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3730"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3731"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3732"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;already_a_directory&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3733"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3734"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;PCLZIP_OPT_STOP_ON_ERROR</span></div></li>
<li><div class="src-line"><a name="a3735"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;For&nbsp;historical&nbsp;reason&nbsp;first&nbsp;PclZip&nbsp;implementation&nbsp;does&nbsp;not&nbsp;stop</span></div></li>
<li><div class="src-line"><a name="a3736"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;when&nbsp;this&nbsp;kind&nbsp;of&nbsp;error&nbsp;occurs.</span></div></li>
<li><div class="src-line"><a name="a3737"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3738"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span>===<span class="src-id">true</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3739"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3740"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_ALREADY_A_DIRECTORY">PCLZIP_ERR_ALREADY_A_DIRECTORY</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3741"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Filename&nbsp;'&quot;</span>.<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;is&nbsp;&quot;</span></div></li>
<li><div class="src-line"><a name="a3742"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;already&nbsp;used&nbsp;by&nbsp;an&nbsp;existing&nbsp;directory&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3743"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3744"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3745"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3746"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3747"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;file&nbsp;is&nbsp;write&nbsp;protected</span></div></li>
<li><div class="src-line"><a name="a3748"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_writeable">is_writeable</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3749"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3750"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3751"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3752"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;write_protected&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3753"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3754"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;PCLZIP_OPT_STOP_ON_ERROR</span></div></li>
<li><div class="src-line"><a name="a3755"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;For&nbsp;historical&nbsp;reason&nbsp;first&nbsp;PclZip&nbsp;implementation&nbsp;does&nbsp;not&nbsp;stop</span></div></li>
<li><div class="src-line"><a name="a3756"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;when&nbsp;this&nbsp;kind&nbsp;of&nbsp;error&nbsp;occurs.</span></div></li>
<li><div class="src-line"><a name="a3757"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3758"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span>===<span class="src-id">true</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3759"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3760"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_WRITE_OPEN_FAIL">PCLZIP_ERR_WRITE_OPEN_FAIL</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3761"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Filename&nbsp;'&quot;</span>.<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;exists&nbsp;&quot;</span></div></li>
<li><div class="src-line"><a name="a3762"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;and&nbsp;is&nbsp;write&nbsp;protected&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3763"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3764"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3765"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3766"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3767"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3768"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;extracted&nbsp;file&nbsp;is&nbsp;older</span></div></li>
<li><div class="src-line"><a name="a3769"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/filemtime">filemtime</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&gt;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3770"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3771"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3772"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REPLACE_NEWER">PCLZIP_OPT_REPLACE_NEWER</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3773"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_REPLACE_NEWER">PCLZIP_OPT_REPLACE_NEWER</a></span><span class="src-sym">]</span>===<span class="src-id">true</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3774"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3775"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3776"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;newer_exist&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3777"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3778"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;PCLZIP_OPT_STOP_ON_ERROR</span></div></li>
<li><div class="src-line"><a name="a3779"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;For&nbsp;historical&nbsp;reason&nbsp;first&nbsp;PclZip&nbsp;implementation&nbsp;does&nbsp;not&nbsp;stop</span></div></li>
<li><div class="src-line"><a name="a3780"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;when&nbsp;this&nbsp;kind&nbsp;of&nbsp;error&nbsp;occurs.</span></div></li>
<li><div class="src-line"><a name="a3781"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3782"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_STOP_ON_ERROR">PCLZIP_OPT_STOP_ON_ERROR</a></span><span class="src-sym">]</span>===<span class="src-id">true</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3783"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3784"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_WRITE_OPEN_FAIL">PCLZIP_ERR_WRITE_OPEN_FAIL</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a3785"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;Newer&nbsp;version&nbsp;of&nbsp;'&quot;</span>.<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">&quot;'&nbsp;exists&nbsp;&quot;</span></div></li>
<li><div class="src-line"><a name="a3786"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">&quot;and&nbsp;option&nbsp;PCLZIP_OPT_REPLACE_NEWER&nbsp;is&nbsp;not&nbsp;selected&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3787"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3788"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3789"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3790"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3791"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3792"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3793"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3794"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3795"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3796"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;directory&nbsp;availability&nbsp;and&nbsp;create&nbsp;it&nbsp;if&nbsp;necessary</span></div></li>
<li><div class="src-line"><a name="a3797"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3798"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(((</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">)&nbsp;</span>||&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">'/'</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3799"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dir_to_check&nbsp;</span>=&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3800"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/strstr">strstr</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;/&quot;</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3801"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dir_to_check&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3802"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a3803"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_dir_to_check&nbsp;</span>=&nbsp;<a href="http://www.php.net/dirname">dirname</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3804"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3805"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDirCheck">privDirCheck</a><span class="src-sym">(</span><span class="src-var">$v_dir_to_check</span><span class="src-sym">,&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">)))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3806"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3807"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3808"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;path_creation_fail&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3809"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3810"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3811"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//return&nbsp;$v_result;</span></div></li>
<li><div class="src-line"><a name="a3812"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3813"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3814"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3815"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3816"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3817"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;extraction&nbsp;should&nbsp;be&nbsp;done</span></div></li>
<li><div class="src-line"><a name="a3818"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'ok'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3819"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3820"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Do&nbsp;the&nbsp;extraction&nbsp;(if&nbsp;not&nbsp;a&nbsp;folder)</span></div></li>
<li><div class="src-line"><a name="a3821"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">((</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a3822"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3823"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;not&nbsp;compressed&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3824"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3825"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3826"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Opening&nbsp;destination&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3827"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_dest_file&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3828"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3829"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3830"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3831"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;write_error&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3832"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3833"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3834"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3835"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3836"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3837"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3838"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;by&nbsp;PCLZIP_READ_BLOCK_SIZE&nbsp;octets&nbsp;blocks</span></div></li>
<li><div class="src-line"><a name="a3839"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3840"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3841"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3842"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3843"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3844"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">/*&nbsp;Try&nbsp;to&nbsp;speed&nbsp;up&nbsp;the&nbsp;code</span></div></li>
<li><div class="src-line"><a name="a3845"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$v_binary_data&nbsp;=&nbsp;pack('a'.$v_read_size,&nbsp;$v_buffer);</span></div></li>
<li><div class="src-line"><a name="a3846"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@fwrite($v_dest_file,&nbsp;$v_binary_data,&nbsp;$v_read_size);</span></div></li>
<li><div class="src-line"><a name="a3847"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a3848"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></div></li>
<li><div class="src-line"><a name="a3849"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3850"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3851"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3852"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Closing&nbsp;the&nbsp;destination&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3853"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3854"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3855"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;mtime</span></div></li>
<li><div class="src-line"><a name="a3856"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/touch">touch</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3857"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3858"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3859"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3860"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3861"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a3862"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Need&nbsp;to&nbsp;be&nbsp;finished</span></div></li>
<li><div class="src-line"><a name="a3863"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3864"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_UNSUPPORTED_ENCRYPTION">PCLZIP_ERR_UNSUPPORTED_ENCRYPTION</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'File&nbsp;\''</span>.<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span>.<span class="src-str">'\'&nbsp;is&nbsp;encrypted.&nbsp;Encrypted&nbsp;files&nbsp;are&nbsp;not&nbsp;supported.'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3865"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3866"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3867"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3868"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3869"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;using&nbsp;temporary&nbsp;file&nbsp;to&nbsp;unzip</span></div></li>
<li><div class="src-line"><a name="a3870"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_OFF">PCLZIP_OPT_TEMP_FILE_OFF</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span></div></li>
<li><div class="src-line"><a name="a3871"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_ON">PCLZIP_OPT_TEMP_FILE_ON</a></span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3872"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3873"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_TEMP_FILE_THRESHOLD">PCLZIP_OPT_TEMP_FILE_THRESHOLD</a></span><span class="src-sym">]&nbsp;</span>&lt;=&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;)&nbsp;)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3874"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFileUsingTempFile">privExtractFileUsingTempFile</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3875"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_NO_ERROR">PCLZIP_ERR_NO_ERROR</a></span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3876"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3877"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3878"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3879"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3880"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;in&nbsp;memory</span></div></li>
<li><div class="src-line"><a name="a3881"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3882"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3883"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3884"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;compressed&nbsp;file&nbsp;in&nbsp;a&nbsp;buffer&nbsp;(one&nbsp;shot)</span></div></li>
<li><div class="src-line"><a name="a3885"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3886"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3887"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Decompress&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3888"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_file_content&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzinflate">gzinflate</a><span class="src-sym">(</span><span class="src-var">$v_buffer</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3889"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_buffer</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3890"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_file_content&nbsp;</span>===&nbsp;<span class="src-id">FALSE</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3891"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3892"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3893"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a3894"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;error&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3895"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3896"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3897"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3898"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3899"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Opening&nbsp;destination&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3900"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_dest_file&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3901"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3902"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3903"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;write_error&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3904"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3905"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3906"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3907"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3908"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;uncompressed&nbsp;data</span></div></li>
<li><div class="src-line"><a name="a3909"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_file_content</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3910"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_file_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3911"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3912"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Closing&nbsp;the&nbsp;destination&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3913"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3914"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3915"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3916"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3917"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;mtime</span></div></li>
<li><div class="src-line"><a name="a3918"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/touch">touch</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3919"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3920"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3921"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;chmod&nbsp;option</span></div></li>
<li><div class="src-line"><a name="a3922"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_SET_CHMOD">PCLZIP_OPT_SET_CHMOD</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3923"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3924"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;mode&nbsp;of&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3925"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/chmod">chmod</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_SET_CHMOD">PCLZIP_OPT_SET_CHMOD</a></span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3926"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3927"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3928"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3929"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3930"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3931"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;abort&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a3932"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;aborted&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3933"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;skipped&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3934"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3935"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3936"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;post-extract&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a3937"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3938"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3939"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a3940"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3941"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3942"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3943"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a3944"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a3945"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a3946"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a3947"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3948"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3949"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;abort&nbsp;result</span></div></li>
<li><div class="src-line"><a name="a3950"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3951"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_USER_ABORTED">PCLZIP_ERR_USER_ABORTED</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3952"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3953"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3954"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3955"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a3956"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3957"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3958"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3959"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3960"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3961"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privExtractFileUsingTempFile()</span></div></li>
<li><div class="src-line"><a name="a3962"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3963"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3964"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a3965"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a3966"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFileUsingTempFile">privExtractFileUsingTempFile</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3967"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3968"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3969"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a3970"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Creates&nbsp;a&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3971"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_gzip_temp_name&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_TEMPORARY_DIR">PCLZIP_TEMPORARY_DIR</a></span>.<a href="http://www.php.net/uniqid">uniqid</a><span class="src-sym">(</span><span class="src-str">'pclzip-'</span><span class="src-sym">)</span>.<span class="src-str">'.gz'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3972"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_dest_file&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;wb&quot;</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3973"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3974"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_WRITE_OPEN_FAIL">PCLZIP_ERR_WRITE_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_gzip_temp_name</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;write&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3975"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3976"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3977"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3978"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3979"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;gz&nbsp;file&nbsp;format&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a3980"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/pack">pack</a><span class="src-sym">(</span><span class="src-str">'va1a1Va1a1'</span><span class="src-sym">,&nbsp;</span><span class="src-num">0x8b1f</span><span class="src-sym">,&nbsp;</span><span class="src-id">Chr</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-id">Chr</span><span class="src-sym">(</span><span class="src-num">0x00</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/time">time</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-id">Chr</span><span class="src-sym">(</span><span class="src-num">0x00</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-id">Chr</span><span class="src-sym">(</span><span class="src-num">3</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3981"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">,&nbsp;</span><span class="src-num">10</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3982"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3983"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;by&nbsp;PCLZIP_READ_BLOCK_SIZE&nbsp;octets&nbsp;blocks</span></div></li>
<li><div class="src-line"><a name="a3984"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3985"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a3986"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a3987"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3988"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3989"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$v_binary_data&nbsp;=&nbsp;pack('a'.$v_read_size,&nbsp;$v_buffer);</span></div></li>
<li><div class="src-line"><a name="a3990"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3991"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3992"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a3993"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3994"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;gz&nbsp;file&nbsp;format&nbsp;footer</span></div></li>
<li><div class="src-line"><a name="a3995"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/pack">pack</a><span class="src-sym">(</span><span class="src-str">'VV'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3996"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">,&nbsp;</span><span class="src-num">8</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3997"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3998"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a3999"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4000"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4001"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Opening&nbsp;destination&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4002"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_dest_file&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4003"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;write_error&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4004"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4005"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4006"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4007"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;temporary&nbsp;gz&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4008"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_src_file&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzopen">gzopen</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4009"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4010"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;read_error&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4011"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_gzip_temp_name</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;read&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4012"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4013"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4014"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4015"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4016"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;by&nbsp;PCLZIP_READ_BLOCK_SIZE&nbsp;octets&nbsp;blocks</span></div></li>
<li><div class="src-line"><a name="a4017"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4018"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4019"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4020"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzread">gzread</a><span class="src-sym">(</span><span class="src-var">$v_src_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4021"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$v_binary_data&nbsp;=&nbsp;pack('a'.$v_read_size,&nbsp;$v_buffer);</span></div></li>
<li><div class="src-line"><a name="a4022"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4023"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4024"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4025"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_dest_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4026"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzclose">gzclose</a><span class="src-sym">(</span><span class="src-var">$v_src_file</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4027"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4028"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Delete&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4029"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_gzip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4030"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4031"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4032"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4033"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4034"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4035"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4036"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4037"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privExtractFileInOutput()</span></div></li>
<li><div class="src-line"><a name="a4038"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4039"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4040"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4041"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4042"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFileInOutput">privExtractFileInOutput</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4043"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4044"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4045"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4046"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4047"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadFileHeader">privReadFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4048"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4049"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4050"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4051"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4052"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;that&nbsp;the&nbsp;file&nbsp;header&nbsp;is&nbsp;coherent&nbsp;with&nbsp;$p_entry&nbsp;info</span></div></li>
<li><div class="src-line"><a name="a4053"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFileHeaders">privCheckFileHeaders</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4054"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a4055"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4056"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4057"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;pre-extract&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4058"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4059"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4060"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a4061"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4062"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4063"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4064"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4065"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a4066"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a4067"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a4068"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4069"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4070"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a4071"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;skipped&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4072"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4073"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4074"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4075"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;abort&nbsp;result</span></div></li>
<li><div class="src-line"><a name="a4076"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4077"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;This&nbsp;status&nbsp;is&nbsp;internal&nbsp;and&nbsp;will&nbsp;be&nbsp;changed&nbsp;in&nbsp;'skipped'</span></div></li>
<li><div class="src-line"><a name="a4078"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;aborted&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4079"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_USER_ABORTED">PCLZIP_ERR_USER_ABORTED</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4080"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4081"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4082"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Update&nbsp;the&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a4083"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Only&nbsp;some&nbsp;fields&nbsp;can&nbsp;be&nbsp;modified</span></div></li>
<li><div class="src-line"><a name="a4084"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4085"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4086"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4087"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Trace</span></div></li>
<li><div class="src-line"><a name="a4088"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4089"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;extraction&nbsp;should&nbsp;be&nbsp;done</span></div></li>
<li><div class="src-line"><a name="a4090"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'ok'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4091"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4092"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Do&nbsp;the&nbsp;extraction&nbsp;(if&nbsp;not&nbsp;a&nbsp;folder)</span></div></li>
<li><div class="src-line"><a name="a4093"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">((</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4094"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;not&nbsp;compressed&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4095"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4096"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4097"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;in&nbsp;a&nbsp;buffer&nbsp;(one&nbsp;shot)</span></div></li>
<li><div class="src-line"><a name="a4098"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4099"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4100"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Send&nbsp;the&nbsp;file&nbsp;to&nbsp;the&nbsp;output</span></div></li>
<li><div class="src-line"><a name="a4101"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<span class="src-var">$v_buffer</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4102"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_buffer</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4103"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4104"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4105"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4106"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;compressed&nbsp;file&nbsp;in&nbsp;a&nbsp;buffer&nbsp;(one&nbsp;shot)</span></div></li>
<li><div class="src-line"><a name="a4107"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4108"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4109"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Decompress&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4110"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_file_content&nbsp;</span>=&nbsp;<a href="http://www.php.net/gzinflate">gzinflate</a><span class="src-sym">(</span><span class="src-var">$v_buffer</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4111"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_buffer</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4112"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4113"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Send&nbsp;the&nbsp;file&nbsp;to&nbsp;the&nbsp;output</span></div></li>
<li><div class="src-line"><a name="a4114"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<span class="src-var">$v_file_content</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4115"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_file_content</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4116"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4117"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4118"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4119"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4120"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;abort&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a4121"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;aborted&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4122"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;skipped&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4123"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4124"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4125"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;post-extract&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4126"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4127"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4128"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a4129"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4130"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4131"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4132"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4133"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a4134"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a4135"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a4136"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4137"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4138"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;abort&nbsp;result</span></div></li>
<li><div class="src-line"><a name="a4139"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4140"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_USER_ABORTED">PCLZIP_ERR_USER_ABORTED</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4141"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4142"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4143"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4144"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4145"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4146"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4147"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4148"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4149"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privExtractFileAsString()</span></div></li>
<li><div class="src-line"><a name="a4150"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4151"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4152"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4153"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4154"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivExtractFileAsString">privExtractFileAsString</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_string</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4155"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4156"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4157"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4158"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4159"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4160"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadFileHeader">privReadFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4161"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4162"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4163"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4164"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4165"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4166"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4167"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;that&nbsp;the&nbsp;file&nbsp;header&nbsp;is&nbsp;coherent&nbsp;with&nbsp;$p_entry&nbsp;info</span></div></li>
<li><div class="src-line"><a name="a4168"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFileHeaders">privCheckFileHeaders</a><span class="src-sym">(</span><span class="src-var">$v_header</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4169"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a4170"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4171"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4172"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;pre-extract&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4173"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4174"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4175"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a4176"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4177"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4178"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4179"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4180"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a4181"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a4182"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a4183"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_PRE_EXTRACT">PCLZIP_CB_PRE_EXTRACT</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4184"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4185"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;the&nbsp;file&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a4186"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;skipped&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4187"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4188"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4189"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4190"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;abort&nbsp;result</span></div></li>
<li><div class="src-line"><a name="a4191"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4192"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;This&nbsp;status&nbsp;is&nbsp;internal&nbsp;and&nbsp;will&nbsp;be&nbsp;changed&nbsp;in&nbsp;'skipped'</span></div></li>
<li><div class="src-line"><a name="a4193"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;aborted&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4194"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_USER_ABORTED">PCLZIP_ERR_USER_ABORTED</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4195"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4196"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4197"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Update&nbsp;the&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a4198"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Only&nbsp;some&nbsp;fields&nbsp;can&nbsp;be&nbsp;modified</span></div></li>
<li><div class="src-line"><a name="a4199"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4200"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4201"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4202"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4203"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;extraction&nbsp;should&nbsp;be&nbsp;done</span></div></li>
<li><div class="src-line"><a name="a4204"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'ok'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4205"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4206"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Do&nbsp;the&nbsp;extraction&nbsp;(if&nbsp;not&nbsp;a&nbsp;folder)</span></div></li>
<li><div class="src-line"><a name="a4207"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">((</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4208"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;not&nbsp;compressed&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4209"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($p_entry['compressed_size']&nbsp;==&nbsp;$p_entry['size'])</span></div></li>
<li><div class="src-line"><a name="a4210"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4211"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4212"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reading&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4213"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_string&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4214"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4215"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4216"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4217"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reading&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4218"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4219"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4220"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Decompress&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4221"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_string&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzinflate">gzinflate</a><span class="src-sym">(</span><span class="src-var">$v_data</span><span class="src-sym">))&nbsp;</span>===&nbsp;<span class="src-id">FALSE</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4222"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a4223"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4224"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4225"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4226"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Trace</span></div></li>
<li><div class="src-line"><a name="a4227"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4228"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4229"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;error&nbsp;:&nbsp;can&nbsp;not&nbsp;extract&nbsp;a&nbsp;folder&nbsp;in&nbsp;a&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a4230"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4231"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4232"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4233"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4234"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;abort&nbsp;status</span></div></li>
<li><div class="src-line"><a name="a4235"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;aborted&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4236"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_entry</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;skipped&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4237"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4238"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4239"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;post-extract&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4240"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4241"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4242"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Generate&nbsp;a&nbsp;local&nbsp;information</span></div></li>
<li><div class="src-line"><a name="a4243"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4244"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivConvertHeader2FileInfo">privConvertHeader2FileInfo</a><span class="src-sym">(</span><span class="src-var">$p_entry</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4245"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4246"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Swap&nbsp;the&nbsp;content&nbsp;to&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4247"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_string</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4248"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_string&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4249"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4250"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Call&nbsp;the&nbsp;callback</span></div></li>
<li><div class="src-line"><a name="a4251"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;I&nbsp;do&nbsp;not&nbsp;use&nbsp;call_user_func()&nbsp;because&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;a&nbsp;reference&nbsp;to&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a4252"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;header.</span></div></li>
<li><div class="src-line"><a name="a4253"></a><span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval('$v_result&nbsp;=&nbsp;'.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT,&nbsp;$v_local_header);');</span></div></li>
<li><div class="src-line"><a name="a4254"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">]</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_CB_POST_EXTRACT">PCLZIP_CB_POST_EXTRACT</a></span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4255"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4256"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Swap&nbsp;back&nbsp;the&nbsp;content&nbsp;to&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4257"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_string&nbsp;</span>=&nbsp;<span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4258"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_local_header</span><span class="src-sym">[</span><span class="src-str">'content'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4259"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4260"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;abort&nbsp;result</span></div></li>
<li><div class="src-line"><a name="a4261"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result&nbsp;</span>==&nbsp;<span class="src-num">2</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4262"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_USER_ABORTED">PCLZIP_ERR_USER_ABORTED</a></span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4263"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4264"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4265"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4266"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4267"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4268"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4269"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4270"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4271"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4272"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privReadFileHeader()</span></div></li>
<li><div class="src-line"><a name="a4273"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4274"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4275"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4276"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4277"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivReadFileHeader">privReadFileHeader</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_header</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4278"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4279"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4280"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4281"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;4&nbsp;bytes&nbsp;signature</span></div></li>
<li><div class="src-line"><a name="a4282"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4283"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'Vid'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4284"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4285"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;signature</span></div></li>
<li><div class="src-line"><a name="a4286"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'id'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0x04034b50</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4287"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4288"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4289"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4290"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Invalid&nbsp;archive&nbsp;structure'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4291"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4292"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4293"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4294"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4295"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4296"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;first&nbsp;42&nbsp;bytes&nbsp;of&nbsp;the&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4297"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-num">26</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4298"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4299"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;invalid&nbsp;block&nbsp;size</span></div></li>
<li><div class="src-line"><a name="a4300"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_binary_data</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">26</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4301"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4302"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4303"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;invalid_header&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4304"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4305"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4306"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;block&nbsp;size&nbsp;:&nbsp;&quot;</span>.<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_binary_data</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4307"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4308"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4309"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4310"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4311"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4312"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;the&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a4313"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'vversion/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4314"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4315"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a4316"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4317"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4318"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;extra_fields</span></div></li>
<li><div class="src-line"><a name="a4319"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4320"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4321"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4322"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4323"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4324"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4325"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4326"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;properties</span></div></li>
<li><div class="src-line"><a name="a4327"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'version_extracted'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'version'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4328"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4329"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4330"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4331"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4332"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4333"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4334"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4335"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Recuperate&nbsp;date&nbsp;in&nbsp;UNIX&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a4336"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4337"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4338"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span>&amp;&amp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4339"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4340"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;time</span></div></li>
<li><div class="src-line"><a name="a4341"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_hour&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0xF800</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">11</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4342"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_minute&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x07E0</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">5</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4343"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_seconde&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x001F</span><span class="src-sym">)</span>*<span class="src-num">2</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4344"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4345"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;date</span></div></li>
<li><div class="src-line"><a name="a4346"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_year&nbsp;</span>=&nbsp;<span class="src-sym">((</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0xFE00</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">9</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-num">1980</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4347"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_month&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x01E0</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">5</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4348"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_day&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x001F</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4349"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4350"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;UNIX&nbsp;date&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a4351"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/mktime">mktime</a><span class="src-sym">(</span><span class="src-var">$v_hour</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_minute</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_seconde</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_month</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_day</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_year</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4352"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4353"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4354"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a4355"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4356"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/time">time</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4357"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4358"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4359"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a4360"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//for(reset($v_data);&nbsp;$key&nbsp;=&nbsp;key($v_data);&nbsp;next($v_data))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a4361"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//}</span></div></li>
<li><div class="src-line"><a name="a4362"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4363"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;stored&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a4364"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4365"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4366"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;status&nbsp;field</span></div></li>
<li><div class="src-line"><a name="a4367"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;ok&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4368"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4369"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4370"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4371"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4372"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4373"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4374"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4375"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privReadCentralFileHeader()</span></div></li>
<li><div class="src-line"><a name="a4376"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4377"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4378"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4379"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4380"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivReadCentralFileHeader">privReadCentralFileHeader</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_header</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4381"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4382"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4383"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4384"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;4&nbsp;bytes&nbsp;signature</span></div></li>
<li><div class="src-line"><a name="a4385"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4386"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'Vid'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4387"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4388"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;signature</span></div></li>
<li><div class="src-line"><a name="a4389"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'id'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0x02014b50</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4390"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4391"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4392"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4393"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Invalid&nbsp;archive&nbsp;structure'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4394"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4395"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4396"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4397"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4398"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4399"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;first&nbsp;42&nbsp;bytes&nbsp;of&nbsp;the&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4400"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-num">42</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4401"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4402"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;invalid&nbsp;block&nbsp;size</span></div></li>
<li><div class="src-line"><a name="a4403"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_binary_data</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">42</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4404"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4405"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4406"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;invalid_header&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4407"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4408"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4409"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;block&nbsp;size&nbsp;:&nbsp;&quot;</span>.<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_binary_data</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4410"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4411"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4412"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4413"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4414"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4415"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;the&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a4416"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header&nbsp;</span>=&nbsp;<a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'vversion/vversion_extracted/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len/vcomment_len/vdisk/vinternal/Vexternal/Voffset'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4417"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4418"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a4419"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4420"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4421"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a4422"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4423"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4424"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;extra</span></div></li>
<li><div class="src-line"><a name="a4425"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4426"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4427"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a4428"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'extra'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4429"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4430"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;comment</span></div></li>
<li><div class="src-line"><a name="a4431"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4432"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment_len'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4433"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a4434"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4435"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4436"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;properties</span></div></li>
<li><div class="src-line"><a name="a4437"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4438"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Recuperate&nbsp;date&nbsp;in&nbsp;UNIX&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a4439"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//if&nbsp;($p_header['mdate']&nbsp;&amp;&amp;&nbsp;$p_header['mtime'])</span></div></li>
<li><div class="src-line"><a name="a4440"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;bug&nbsp;:&nbsp;this&nbsp;was&nbsp;ignoring&nbsp;time&nbsp;with&nbsp;0/0/0</span></div></li>
<li><div class="src-line"><a name="a4441"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4442"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4443"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;time</span></div></li>
<li><div class="src-line"><a name="a4444"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_hour&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0xF800</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">11</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4445"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_minute&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x07E0</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">5</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4446"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_seconde&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x001F</span><span class="src-sym">)</span>*<span class="src-num">2</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4447"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4448"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;date</span></div></li>
<li><div class="src-line"><a name="a4449"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_year&nbsp;</span>=&nbsp;<span class="src-sym">((</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0xFE00</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">9</span><span class="src-sym">)&nbsp;</span>+&nbsp;<span class="src-num">1980</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4450"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_month&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x01E0</span><span class="src-sym">)&nbsp;</span>&gt;&gt;&nbsp;<span class="src-num">5</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4451"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_day&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mdate'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0x001F</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4452"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4453"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;UNIX&nbsp;date&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a4454"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/mktime">mktime</a><span class="src-sym">(</span><span class="src-var">$v_hour</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_minute</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_seconde</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_month</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_day</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_year</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4455"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4456"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4457"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a4458"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4459"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/time">time</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4460"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4461"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4462"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;the&nbsp;stored&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a4463"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4464"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4465"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Set&nbsp;default&nbsp;status&nbsp;to&nbsp;ok</span></div></li>
<li><div class="src-line"><a name="a4466"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'status'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">'ok'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4467"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4468"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;it&nbsp;is&nbsp;a&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a4469"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">'/'</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4470"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$p_header['external']&nbsp;=&nbsp;0x41FF0010;</span></div></li>
<li><div class="src-line"><a name="a4471"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_header</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-num">0x00000010</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4472"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4473"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4474"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4475"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4476"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4477"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4478"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4479"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4480"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4481"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privCheckFileHeaders()</span></div></li>
<li><div class="src-line"><a name="a4482"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4483"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4484"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4485"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success,</span></div></li>
<li><div class="src-line"><a name="a4486"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;on&nbsp;error;</span></div></li>
<li><div class="src-line"><a name="a4487"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4488"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFileHeaders">privCheckFileHeaders</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_local_header</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_central_header</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4489"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4490"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4491"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4492"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;static&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a4493"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a4494"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4495"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4496"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'version_extracted'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'version_extracted'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4497"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4498"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4499"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4500"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'compression'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4501"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4502"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'mtime'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4503"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4504"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'filename_len'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4505"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4506"></a>&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4507"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;flag&nbsp;bit&nbsp;3</span></div></li>
<li><div class="src-line"><a name="a4508"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'flag'</span><span class="src-sym">]&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">8</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">8</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4509"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4510"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4511"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_local_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$p_central_header</span><span class="src-sym">[</span><span class="src-str">'crc'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4512"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4513"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4514"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4515"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4516"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4517"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4518"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4519"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4520"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privReadEndCentralDir()</span></div></li>
<li><div class="src-line"><a name="a4521"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4522"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4523"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4524"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4525"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivReadEndCentralDir">privReadEndCentralDir</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_central_dir</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4526"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4527"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4528"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4529"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;to&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4530"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4531"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4532"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-var">$v_size</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4533"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4534"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4535"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;go&nbsp;to&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;archive&nbsp;\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">'\''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4536"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4537"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4538"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4539"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4540"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4541"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;First&nbsp;try&nbsp;:&nbsp;look&nbsp;if&nbsp;this&nbsp;is&nbsp;an&nbsp;archive&nbsp;with&nbsp;no&nbsp;commentaries&nbsp;(most&nbsp;of&nbsp;the&nbsp;time)</span></div></li>
<li><div class="src-line"><a name="a4542"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;in&nbsp;this&nbsp;case&nbsp;the&nbsp;end&nbsp;of&nbsp;central&nbsp;dir&nbsp;is&nbsp;at&nbsp;22&nbsp;bytes&nbsp;of&nbsp;the&nbsp;file&nbsp;end</span></div></li>
<li><div class="src-line"><a name="a4543"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4544"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&gt;&nbsp;<span class="src-num">26</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4545"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span>-<span class="src-num">22</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4546"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_pos&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size</span>-<span class="src-num">22</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4547"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4548"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4549"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;seek&nbsp;back&nbsp;to&nbsp;the&nbsp;middle&nbsp;of&nbsp;the&nbsp;archive&nbsp;\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">'\''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4550"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4551"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4552"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4553"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4554"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4555"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;for&nbsp;bytes</span></div></li>
<li><div class="src-line"><a name="a4556"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4557"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'Vid'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4558"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4559"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;signature</span></div></li>
<li><div class="src-line"><a name="a4560"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'id'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-num">0x06054b50</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4561"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4562"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4563"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4564"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_pos&nbsp;</span>=&nbsp;<a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4565"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4566"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4567"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;back&nbsp;to&nbsp;the&nbsp;maximum&nbsp;possible&nbsp;size&nbsp;of&nbsp;the&nbsp;Central&nbsp;Dir&nbsp;End&nbsp;Record</span></div></li>
<li><div class="src-line"><a name="a4568"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$v_found</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4569"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_maximum_size&nbsp;</span>=&nbsp;<span class="src-num">65557</span><span class="src-sym">;&nbsp;</span><span class="src-comm">//&nbsp;0xFFFF&nbsp;+&nbsp;22;</span></div></li>
<li><div class="src-line"><a name="a4570"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_maximum_size&nbsp;</span>&gt;&nbsp;<span class="src-var">$v_size</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4571"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_maximum_size&nbsp;</span>=&nbsp;<span class="src-var">$v_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4572"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span>-<span class="src-var">$v_maximum_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4573"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size</span>-<span class="src-var">$v_maximum_size</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4574"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4575"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4576"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;seek&nbsp;back&nbsp;to&nbsp;the&nbsp;middle&nbsp;of&nbsp;the&nbsp;archive&nbsp;\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a>.<span class="src-str">'\''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4577"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4578"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4579"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4580"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4581"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4582"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;byte&nbsp;per&nbsp;byte&nbsp;in&nbsp;order&nbsp;to&nbsp;find&nbsp;the&nbsp;signature</span></div></li>
<li><div class="src-line"><a name="a4583"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_pos&nbsp;</span>=&nbsp;<a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4584"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_bytes&nbsp;</span>=&nbsp;<span class="src-num">0x00000000</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4585"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_pos&nbsp;</span>&lt;&nbsp;<span class="src-var">$v_size</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4587"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;a&nbsp;byte</span></div></li>
<li><div class="src-line"><a name="a4588"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_byte&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4589"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4590"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;&nbsp;Add&nbsp;the&nbsp;byte</span></div></li>
<li><div class="src-line"><a name="a4591"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//$v_bytes&nbsp;=&nbsp;($v_bytes&nbsp;&lt;&lt;&nbsp;8)&nbsp;|&nbsp;Ord($v_byte);</span></div></li>
<li><div class="src-line"><a name="a4592"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Note&nbsp;we&nbsp;mask&nbsp;the&nbsp;old&nbsp;value&nbsp;down&nbsp;such&nbsp;that&nbsp;once&nbsp;shifted&nbsp;we&nbsp;can&nbsp;never&nbsp;end&nbsp;up&nbsp;with&nbsp;more&nbsp;than&nbsp;a&nbsp;32bit&nbsp;number&nbsp;</span></div></li>
<li><div class="src-line"><a name="a4593"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Otherwise&nbsp;on&nbsp;systems&nbsp;where&nbsp;we&nbsp;have&nbsp;64bit&nbsp;integers&nbsp;the&nbsp;check&nbsp;below&nbsp;for&nbsp;the&nbsp;magic&nbsp;number&nbsp;will&nbsp;fail.&nbsp;</span></div></li>
<li><div class="src-line"><a name="a4594"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_bytes&nbsp;</span>=&nbsp;<span class="src-sym">(&nbsp;(</span><span class="src-var">$v_bytes&nbsp;</span><span class="src-sym">&amp;&nbsp;</span><span class="src-num">0xFFFFFF</span><span class="src-sym">)&nbsp;</span>&lt;&lt;&nbsp;<span class="src-num">8</span><span class="src-sym">)&nbsp;</span>|&nbsp;<span class="src-id">Ord</span><span class="src-sym">(</span><span class="src-var">$v_byte</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span></div></li>
<li><div class="src-line"><a name="a4595"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4596"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Compare&nbsp;the&nbsp;bytes</span></div></li>
<li><div class="src-line"><a name="a4597"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_bytes&nbsp;</span>==&nbsp;<span class="src-num">0x504b0506</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4598"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4599"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_pos</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4600"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4601"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4602"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4603"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_pos</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4604"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4605"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4606"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;not&nbsp;found&nbsp;end&nbsp;of&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a4607"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_pos&nbsp;</span>==&nbsp;<span class="src-var">$v_size</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4608"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4609"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4610"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4611"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Unable&nbsp;to&nbsp;find&nbsp;End&nbsp;of&nbsp;Central&nbsp;Dir&nbsp;Record&nbsp;signature&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4612"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4613"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4614"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4615"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4616"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4617"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4618"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;first&nbsp;18&nbsp;bytes&nbsp;of&nbsp;the&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4619"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_binary_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-num">18</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4620"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4621"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;invalid&nbsp;block&nbsp;size</span></div></li>
<li><div class="src-line"><a name="a4622"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_binary_data</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">18</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4623"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4624"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4625"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4626"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;Invalid&nbsp;End&nbsp;of&nbsp;Central&nbsp;Dir&nbsp;Record&nbsp;size&nbsp;:&nbsp;&quot;</span>.<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_binary_data</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4627"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4628"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4629"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4630"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4631"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4632"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;the&nbsp;values</span></div></li>
<li><div class="src-line"><a name="a4633"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_data&nbsp;</span>=&nbsp;<a href="http://www.php.net/unpack">unpack</a><span class="src-sym">(</span><span class="src-str">'vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_binary_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4634"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4635"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;global&nbsp;size</span></div></li>
<li><div class="src-line"><a name="a4636"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_pos&nbsp;</span>+&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'comment_size'</span><span class="src-sym">]&nbsp;</span>+&nbsp;<span class="src-num">18</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-var">$v_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4637"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4638"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Removed&nbsp;in&nbsp;release&nbsp;2.2&nbsp;see&nbsp;readme&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4639"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;The&nbsp;check&nbsp;of&nbsp;the&nbsp;file&nbsp;size&nbsp;is&nbsp;a&nbsp;little&nbsp;too&nbsp;strict.</span></div></li>
<li><div class="src-line"><a name="a4640"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Some&nbsp;bugs&nbsp;where&nbsp;found&nbsp;when&nbsp;a&nbsp;zip&nbsp;is&nbsp;encrypted/decrypted&nbsp;with&nbsp;'crypt'.</span></div></li>
<li><div class="src-line"><a name="a4641"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;While&nbsp;decrypted,&nbsp;zip&nbsp;has&nbsp;training&nbsp;0&nbsp;bytes</span></div></li>
<li><div class="src-line"><a name="a4642"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4643"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4644"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_BAD_FORMAT">PCLZIP_ERR_BAD_FORMAT</a></span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a4645"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'The&nbsp;central&nbsp;dir&nbsp;is&nbsp;not&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;archive.'</span></div></li>
<li><div class="src-line"><a name="a4646"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<span class="src-str">'&nbsp;Some&nbsp;trailing&nbsp;bytes&nbsp;exists&nbsp;after&nbsp;the&nbsp;archive.'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4647"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4648"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4649"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4650"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4651"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4652"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4653"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;comment</span></div></li>
<li><div class="src-line"><a name="a4654"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'comment_size'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4655"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'comment_size'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4656"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4657"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a4658"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4659"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4660"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4661"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'disk_entries'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'disk_entries'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4662"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4663"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4664"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'disk'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'disk'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4665"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_central_dir</span><span class="src-sym">[</span><span class="src-str">'disk_start'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$v_data</span><span class="src-sym">[</span><span class="src-str">'disk_start'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4666"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4667"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a4668"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//for(reset($p_central_dir);&nbsp;$key&nbsp;=&nbsp;key($p_central_dir);&nbsp;next($p_central_dir))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a4669"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//}</span></div></li>
<li><div class="src-line"><a name="a4670"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4671"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4672"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4673"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4674"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4675"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4676"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4677"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privDeleteByRule()</span></div></li>
<li><div class="src-line"><a name="a4678"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4679"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4680"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4681"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4682"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivDeleteByRule">privDeleteByRule</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_result_list</span><span class="src-sym">,&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$p_options</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4683"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4684"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4685"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list_detail&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4686"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4687"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4688"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result</span>=<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4689"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4690"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4691"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4692"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4693"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4694"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;central&nbsp;directory&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a4695"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_central_dir&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4696"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadEndCentralDir">privReadEndCentralDir</a><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4697"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4698"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4699"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4700"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4701"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4702"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;to&nbsp;beginning&nbsp;of&nbsp;File</span></div></li>
<li><div class="src-line"><a name="a4703"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4704"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4705"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Scan&nbsp;all&nbsp;the&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a4706"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Start&nbsp;at&nbsp;beginning&nbsp;of&nbsp;Central&nbsp;Dir</span></div></li>
<li><div class="src-line"><a name="a4707"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_pos_entry&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4708"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4709"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_pos_entry</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4710"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4711"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4712"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4713"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4714"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4715"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ARCHIVE_ZIP">PCLZIP_ERR_INVALID_ARCHIVE_ZIP</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Invalid&nbsp;archive&nbsp;size'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4716"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4717"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4718"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4719"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4720"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4721"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;each&nbsp;entry</span></div></li>
<li><div class="src-line"><a name="a4722"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header_list&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4723"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$j_start&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4724"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_nb_extracted</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4725"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4726"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4727"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4728"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4729"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadCentralFileHeader">privReadCentralFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4730"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4731"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4732"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4733"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4734"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4735"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4736"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4737"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4738"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;index</span></div></li>
<li><div class="src-line"><a name="a4739"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'index'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-var">$i</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4740"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4741"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;the&nbsp;specific&nbsp;extract&nbsp;rules</span></div></li>
<li><div class="src-line"><a name="a4742"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4743"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4744"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;name&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a4745"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4746"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4747"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4748"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;filename&nbsp;is&nbsp;in&nbsp;the&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a4749"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$v_found</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$j</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4750"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4751"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a4752"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">&quot;/&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4753"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4754"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;directory&nbsp;is&nbsp;in&nbsp;the&nbsp;filename&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a4755"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&gt;&nbsp;<a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4756"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4757"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4758"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4759"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;((</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'external'</span><span class="src-sym">]</span><span class="src-sym">&amp;</span><span class="src-num">0x00000010</span><span class="src-sym">)</span>==<span class="src-num">0x00000010</span><span class="src-sym">)&nbsp;</span><span class="src-comm">/*&nbsp;Indicates&nbsp;a&nbsp;folder&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a4760"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span>.<span class="src-str">'/'&nbsp;</span>==&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4761"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4762"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4763"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4764"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;a&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a4765"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">elseif&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_NAME">PCLZIP_OPT_BY_NAME</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4766"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4767"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4768"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4769"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4770"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4771"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;ereg&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a4772"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;ereg()&nbsp;is&nbsp;deprecated&nbsp;with&nbsp;PHP&nbsp;5.3</span></div></li>
<li><div class="src-line"><a name="a4773"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">/*</span></div></li>
<li><div class="src-line"><a name="a4774"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if&nbsp;(&nbsp;&nbsp;&nbsp;(isset($p_options[PCLZIP_OPT_BY_EREG]))</span></div></li>
<li><div class="src-line"><a name="a4775"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;($p_options[PCLZIP_OPT_BY_EREG]&nbsp;!=&nbsp;&quot;&quot;))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a4776"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4777"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(ereg($p_options[PCLZIP_OPT_BY_EREG],&nbsp;$v_header_list[$v_nb_extracted]['stored_filename']))&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a4778"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$v_found&nbsp;=&nbsp;true;</span></div></li>
<li><div class="src-line"><a name="a4779"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a4780"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a4781"></a><span class="src-comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a4782"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4783"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;preg&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a4784"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4785"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a></span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4786"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4787"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_PREG">PCLZIP_OPT_BY_PREG</a></span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'stored_filename'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4788"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4789"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4790"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4791"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4792"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;extract&nbsp;by&nbsp;index&nbsp;rule</span></div></li>
<li><div class="src-line"><a name="a4793"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4794"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4795"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4796"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;index&nbsp;is&nbsp;in&nbsp;the&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a4797"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>=<span class="src-var">$j_start</span><span class="src-sym">;&nbsp;</span><span class="src-sym">(</span><span class="src-var">$j</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$v_found</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$j</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4798"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4799"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i</span>&gt;=<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$i</span>&lt;=<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'end'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4800"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4801"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4802"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>&gt;=<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'end'</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4803"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$j_start&nbsp;</span>=&nbsp;<span class="src-var">$j</span>+<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4804"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4805"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4806"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_BY_INDEX">PCLZIP_OPT_BY_INDEX</a></span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'start'</span><span class="src-sym">]</span>&gt;<span class="src-var">$i</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4807"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4808"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4809"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4810"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4811"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4812"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_found&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4813"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4814"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4815"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;deletion</span></div></li>
<li><div class="src-line"><a name="a4816"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_found</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4817"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4818"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$v_nb_extracted</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4819"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4820"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line"><a name="a4821"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4822"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_nb_extracted</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4823"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4824"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4825"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4826"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;something&nbsp;need&nbsp;to&nbsp;be&nbsp;deleted</span></div></li>
<li><div class="src-line"><a name="a4827"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_nb_extracted&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4828"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4829"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Creates&nbsp;a&nbsp;temporay&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4830"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_zip_temp_name&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_TEMPORARY_DIR">PCLZIP_TEMPORARY_DIR</a></span>.<a href="http://www.php.net/uniqid">uniqid</a><span class="src-sym">(</span><span class="src-str">'pclzip-'</span><span class="src-sym">)</span>.<span class="src-str">'.tmp'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4831"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4832"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Creates&nbsp;a&nbsp;temporary&nbsp;zip&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a4833"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4834"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4835"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;temporary&nbsp;zip&nbsp;file&nbsp;in&nbsp;write&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a4836"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privOpenFd</span><span class="src-sym">(</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4837"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4838"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4839"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4840"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4841"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4842"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4843"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;which&nbsp;file&nbsp;need&nbsp;to&nbsp;be&nbsp;kept</span></div></li>
<li><div class="src-line"><a name="a4844"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4845"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4846"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;position&nbsp;of&nbsp;the&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4847"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4848"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/fseek">fseek</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;&nbsp;</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4849"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4850"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4851"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4852"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4853"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4854"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a4855"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_INVALID_ARCHIVE_ZIP">PCLZIP_ERR_INVALID_ARCHIVE_ZIP</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Invalid&nbsp;archive&nbsp;size'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4856"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4857"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4858"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4859"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4860"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4861"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4862"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_local_header&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4863"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadFileHeader">privReadFileHeader</a><span class="src-sym">(</span><span class="src-var">$v_local_header</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4864"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4865"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4866"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4867"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4868"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4869"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4870"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4871"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4872"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4873"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;that&nbsp;local&nbsp;file&nbsp;header&nbsp;is&nbsp;same&nbsp;as&nbsp;central&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4874"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCheckFileHeaders">privCheckFileHeaders</a><span class="src-sym">(</span><span class="src-var">$v_local_header</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a4875"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4876"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a4877"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4878"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_local_header</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4879"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4880"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Write&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4881"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privWriteFileHeader</span><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4882"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4883"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4884"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4885"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4886"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4887"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4888"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4889"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4890"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4891"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read/write&nbsp;the&nbsp;data&nbsp;block</span></div></li>
<li><div class="src-line"><a name="a4892"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilCopyBlock">PclZipUtilCopyBlock</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">zip_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'compressed_size'</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4893"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4894"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4895"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4896"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4897"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4898"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4899"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4900"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4901"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4902"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4903"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;offset&nbsp;of&nbsp;the&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a4904"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_offset&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">zip_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4905"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4906"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Re-Create&nbsp;the&nbsp;Central&nbsp;Dir&nbsp;files&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4907"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&lt;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4908"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;file&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4909"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privWriteCentralFileHeader</span><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4910"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4911"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4912"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4913"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4914"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4915"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4916"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4917"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4918"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Transform&nbsp;the&nbsp;header&nbsp;to&nbsp;a&nbsp;'usable'&nbsp;info</span></div></li>
<li><div class="src-line"><a name="a4919"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privConvertHeader2FileInfo</span><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_result_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4920"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4921"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4922"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4923"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Zip&nbsp;file&nbsp;comment</span></div></li>
<li><div class="src-line"><a name="a4924"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4925"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4926"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-var">$p_options</span><span class="src-sym">[</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_OPT_COMMENT">PCLZIP_OPT_COMMENT</a></span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4927"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4928"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4929"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;central&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a4930"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">zip_fd</span><span class="src-sym">)</span>-<span class="src-var">$v_offset</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4931"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4932"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;central&nbsp;dir&nbsp;footer</span></div></li>
<li><div class="src-line"><a name="a4933"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privWriteCentralHeader</span><span class="src-sym">(</span><a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_offset</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_comment</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4934"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;file&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a4935"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4936"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4937"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4938"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4939"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4940"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4941"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4942"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4943"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4944"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close</span></div></li>
<li><div class="src-line"><a name="a4945"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_temp_zip</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4946"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4947"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4948"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Delete&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4949"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;I&nbsp;should&nbsp;test&nbsp;the&nbsp;result&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a4950"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4951"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4952"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Rename&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4953"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;I&nbsp;should&nbsp;test&nbsp;the&nbsp;result&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a4954"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//@rename($v_zip_temp_name,&nbsp;$this-&gt;zipname);</span></div></li>
<li><div class="src-line"><a name="a4955"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilRename">PclZipUtilRename</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4956"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4957"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Destroy&nbsp;the&nbsp;temporary&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a4958"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_temp_zip</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4959"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4960"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a4961"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;every&nbsp;files&nbsp;:&nbsp;reset&nbsp;the&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a4962"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4963"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4964"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4965"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4966"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4967"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4968"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4969"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralHeader">privWriteCentralHeader</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-str">''</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4970"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4971"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4972"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4973"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4974"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4975"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4976"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a4977"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4978"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a4979"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4980"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4981"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4982"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privDirCheck()</span></div></li>
<li><div class="src-line"><a name="a4983"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4984"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Check&nbsp;if&nbsp;a&nbsp;directory&nbsp;exists,&nbsp;if&nbsp;not&nbsp;it&nbsp;creates&nbsp;it&nbsp;and&nbsp;all&nbsp;the&nbsp;parents&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a4985"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;which&nbsp;may&nbsp;be&nbsp;useful.</span></div></li>
<li><div class="src-line"><a name="a4986"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4987"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_dir&nbsp;:&nbsp;Directory&nbsp;path&nbsp;to&nbsp;check.</span></div></li>
<li><div class="src-line"><a name="a4988"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a4989"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;:&nbsp;OK</span></div></li>
<li><div class="src-line"><a name="a4990"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;-1&nbsp;:&nbsp;Unable&nbsp;to&nbsp;create&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a4991"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4992"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivDirCheck">privDirCheck</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_is_dir</span>=<span class="src-id">false</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a4993"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4994"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4995"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4996"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4997"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Remove&nbsp;the&nbsp;final&nbsp;'/'</span></div></li>
<li><div class="src-line"><a name="a4998"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_is_dir</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">,&nbsp;</span>-<span class="src-num">1</span><span class="src-sym">)</span>==<span class="src-str">'/'</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a4999"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5000"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_dir&nbsp;</span>=&nbsp;<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">)</span>-<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5001"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5002"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5003"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Check&nbsp;the&nbsp;directory&nbsp;availability</span></div></li>
<li><div class="src-line"><a name="a5004"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/is_dir">is_dir</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">))&nbsp;</span>||&nbsp;<span class="src-sym">(</span><span class="src-var">$p_dir&nbsp;</span>==&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5005"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5006"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5007"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5008"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5009"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Extract&nbsp;parent&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a5010"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_parent_dir&nbsp;</span>=&nbsp;<a href="http://www.php.net/dirname">dirname</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5011"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5012"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Just&nbsp;a&nbsp;check</span></div></li>
<li><div class="src-line"><a name="a5013"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_parent_dir&nbsp;</span>!=&nbsp;<span class="src-var">$p_dir</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5014"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5015"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;parent&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a5016"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_parent_dir&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5017"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5018"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDirCheck">privDirCheck</a><span class="src-sym">(</span><span class="src-var">$p_parent_dir</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5019"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5020"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5021"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5022"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5023"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5024"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5025"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a5026"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">@</span><a href="http://www.php.net/mkdir">mkdir</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">0777</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5027"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5028"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Error&nbsp;log</span></div></li>
<li><div class="src-line"><a name="a5029"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_DIR_CREATE_FAIL">PCLZIP_ERR_DIR_CREATE_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;</span><span class="src-str">Unable&nbsp;to&nbsp;create&nbsp;directory&nbsp;'<span class="src-var">$p_dir</span>'</span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5030"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5031"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5032"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5033"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5034"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5035"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5036"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5037"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5038"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5039"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5040"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5041"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privMerge()</span></div></li>
<li><div class="src-line"><a name="a5042"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5043"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;If&nbsp;$p_archive_to_add&nbsp;does&nbsp;not&nbsp;exist,&nbsp;the&nbsp;function&nbsp;exit&nbsp;with&nbsp;a&nbsp;success&nbsp;result.</span></div></li>
<li><div class="src-line"><a name="a5044"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5045"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5046"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5047"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivMerge">privMerge</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5048"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5049"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5050"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5051"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;archive_to_add&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a5052"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">zipname</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5053"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5054"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5055"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Nothing&nbsp;to&nbsp;merge,&nbsp;so&nbsp;merge&nbsp;is&nbsp;a&nbsp;success</span></div></li>
<li><div class="src-line"><a name="a5056"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5057"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5058"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5059"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5060"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5061"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5062"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;archive&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a5063"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5064"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5065"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5066"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Do&nbsp;a&nbsp;duplicate</span></div></li>
<li><div class="src-line"><a name="a5067"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivDuplicate">privDuplicate</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">zipname</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5068"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5069"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5070"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5071"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5072"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5073"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5074"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result</span>=<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5075"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5076"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5077"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5078"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5079"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5080"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;central&nbsp;directory&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a5081"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_central_dir&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5082"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivReadEndCentralDir">privReadEndCentralDir</a><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5083"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5084"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5085"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5086"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5087"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5088"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;to&nbsp;beginning&nbsp;of&nbsp;File</span></div></li>
<li><div class="src-line"><a name="a5089"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5090"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5091"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;archive_to_add&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5092"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result</span>=<span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">privOpenFd</span><span class="src-sym">(</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5093"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5094"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5095"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5096"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5097"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5098"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5099"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5100"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Read&nbsp;the&nbsp;central&nbsp;directory&nbsp;informations</span></div></li>
<li><div class="src-line"><a name="a5101"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_central_dir_to_add&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5102"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">privReadEndCentralDir</span><span class="src-sym">(</span><span class="src-var">$v_central_dir_to_add</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5103"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5104"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5105"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5106"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5107"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5108"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5109"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5110"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Go&nbsp;to&nbsp;beginning&nbsp;of&nbsp;File</span></div></li>
<li><div class="src-line"><a name="a5111"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/rewind">rewind</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">zip_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5112"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5113"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Creates&nbsp;a&nbsp;temporay&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5114"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_zip_temp_name&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_TEMPORARY_DIR">PCLZIP_TEMPORARY_DIR</a></span>.<a href="http://www.php.net/uniqid">uniqid</a><span class="src-sym">(</span><span class="src-str">'pclzip-'</span><span class="src-sym">)</span>.<span class="src-str">'.tmp'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5115"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5116"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;temporary&nbsp;file&nbsp;in&nbsp;write&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a5117"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_zip_temp_fd&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5118"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5119"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5120"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5121"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5122"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;temporary&nbsp;file&nbsp;\''</span>.<span class="src-var">$v_zip_temp_name</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;write&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5123"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5124"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5125"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5126"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5127"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5128"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Copy&nbsp;the&nbsp;files&nbsp;from&nbsp;the&nbsp;archive&nbsp;to&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5129"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;Here&nbsp;I&nbsp;should&nbsp;better&nbsp;append&nbsp;the&nbsp;file&nbsp;and&nbsp;go&nbsp;back&nbsp;to&nbsp;erase&nbsp;the&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a5130"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5131"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5132"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5133"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5134"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5135"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5136"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5137"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5138"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5139"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Copy&nbsp;the&nbsp;files&nbsp;from&nbsp;the&nbsp;archive_to_add&nbsp;into&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5140"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir_to_add</span><span class="src-sym">[</span><span class="src-str">'offset'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5141"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5142"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5143"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5144"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">zip_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5145"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5146"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5147"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5148"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5149"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Store&nbsp;the&nbsp;offset&nbsp;of&nbsp;the&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a5150"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_offset&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5151"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5152"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Copy&nbsp;the&nbsp;block&nbsp;of&nbsp;file&nbsp;headers&nbsp;from&nbsp;the&nbsp;old&nbsp;archive</span></div></li>
<li><div class="src-line"><a name="a5153"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5154"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5155"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5156"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5157"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5158"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5159"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5160"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5161"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5162"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Copy&nbsp;the&nbsp;block&nbsp;of&nbsp;file&nbsp;headers&nbsp;from&nbsp;the&nbsp;archive_to_add</span></div></li>
<li><div class="src-line"><a name="a5163"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir_to_add</span><span class="src-sym">[</span><span class="src-str">'size'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5164"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5165"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5166"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5167"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">zip_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5168"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5169"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5170"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5171"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5172"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Merge&nbsp;the&nbsp;file&nbsp;comments</span></div></li>
<li><div class="src-line"><a name="a5173"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_comment&nbsp;</span>=&nbsp;<span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span>.<span class="src-str">'&nbsp;'</span>.<span class="src-var">$v_central_dir_to_add</span><span class="src-sym">[</span><span class="src-str">'comment'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5174"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5175"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Calculate&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;(new)&nbsp;central&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a5176"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/ftell">ftell</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span>-<span class="src-var">$v_offset</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5177"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5178"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Swap&nbsp;the&nbsp;file&nbsp;descriptor</span></div></li>
<li><div class="src-line"><a name="a5179"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;is&nbsp;a&nbsp;trick&nbsp;:&nbsp;I&nbsp;swap&nbsp;the&nbsp;temporary&nbsp;fd&nbsp;with&nbsp;the&nbsp;zip&nbsp;fd,&nbsp;in&nbsp;order&nbsp;to&nbsp;use</span></div></li>
<li><div class="src-line"><a name="a5180"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;the&nbsp;following&nbsp;methods&nbsp;on&nbsp;the&nbsp;temporary&nbsp;fil&nbsp;and&nbsp;not&nbsp;the&nbsp;real&nbsp;archive&nbsp;fd</span></div></li>
<li><div class="src-line"><a name="a5181"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_swap&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5182"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-var">$v_zip_temp_fd</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5183"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_zip_temp_fd&nbsp;</span>=&nbsp;<span class="src-var">$v_swap</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5184"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5185"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Create&nbsp;the&nbsp;central&nbsp;dir&nbsp;footer</span></div></li>
<li><div class="src-line"><a name="a5186"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivWriteCentralHeader">privWriteCentralHeader</a><span class="src-sym">(</span><span class="src-var">$v_central_dir</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span>+<span class="src-var">$v_central_dir_to_add</span><span class="src-sym">[</span><span class="src-str">'entries'</span><span class="src-sym">]</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_offset</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_comment</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5187"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5188"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5189"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5190"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5191"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-id">null</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5192"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5193"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Reset&nbsp;the&nbsp;file&nbsp;list</span></div></li>
<li><div class="src-line"><a name="a5194"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset<span class="src-sym">(</span><span class="src-var">$v_header_list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5195"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5196"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5197"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5198"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5199"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5200"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Swap&nbsp;back&nbsp;the&nbsp;file&nbsp;descriptor</span></div></li>
<li><div class="src-line"><a name="a5201"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_swap&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5202"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a>&nbsp;=&nbsp;<span class="src-var">$v_zip_temp_fd</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5203"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_zip_temp_fd&nbsp;</span>=&nbsp;<span class="src-var">$v_swap</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5204"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5205"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close</span></div></li>
<li><div class="src-line"><a name="a5206"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5207"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_archive_to_add</span><span class="src-sym">-&gt;</span><span class="src-id">privCloseFd</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5208"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5209"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5210"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5211"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5212"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Delete&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5213"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;I&nbsp;should&nbsp;test&nbsp;the&nbsp;result&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a5214"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5215"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5216"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Rename&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5217"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;I&nbsp;should&nbsp;test&nbsp;the&nbsp;result&nbsp;...</span></div></li>
<li><div class="src-line"><a name="a5218"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//@rename($v_zip_temp_name,&nbsp;$this-&gt;zipname);</span></div></li>
<li><div class="src-line"><a name="a5219"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilRename">PclZipUtilRename</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_name</span><span class="src-sym">,&nbsp;</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zipname">zipname</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5220"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5221"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5222"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5223"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5224"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5225"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5226"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5227"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privDuplicate()</span></div></li>
<li><div class="src-line"><a name="a5228"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5229"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5230"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5231"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5232"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivDuplicate">privDuplicate</a><span class="src-sym">(</span><span class="src-var">$p_archive_filename</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5233"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5234"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5235"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5236"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;the&nbsp;$p_archive_filename&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a5237"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_file">is_file</a><span class="src-sym">(</span><span class="src-var">$p_archive_filename</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5238"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5239"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5240"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Nothing&nbsp;to&nbsp;duplicate,&nbsp;so&nbsp;duplicate&nbsp;is&nbsp;a&nbsp;success.</span></div></li>
<li><div class="src-line"><a name="a5241"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5242"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5243"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5244"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5245"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5246"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5247"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;zip&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5248"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_result</span>=<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivOpenFd">privOpenFd</a><span class="src-sym">(</span><span class="src-str">'wb'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5249"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5250"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5251"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5252"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5253"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5254"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Open&nbsp;the&nbsp;temporary&nbsp;file&nbsp;in&nbsp;write&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a5255"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_zip_temp_fd&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-var">$p_archive_filename</span><span class="src-sym">,&nbsp;</span><span class="src-str">'rb'</span><span class="src-sym">))&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5256"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5257"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5258"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5259"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERR_READ_OPEN_FAIL">PCLZIP_ERR_READ_OPEN_FAIL</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'Unable&nbsp;to&nbsp;open&nbsp;archive&nbsp;file&nbsp;\''</span>.<span class="src-var">$p_archive_filename</span>.<span class="src-str">'\'&nbsp;in&nbsp;binary&nbsp;write&nbsp;mode'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5260"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5261"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5262"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="../PHPExcel/PclZip.html#methodPclZip">PclZip</a><span class="src-sym">::</span><a href="../PHPExcel/PclZip.html#methoderrorCode">errorCode</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5263"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5264"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5265"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Copy&nbsp;the&nbsp;files&nbsp;from&nbsp;the&nbsp;archive&nbsp;to&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5266"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC&nbsp;:&nbsp;Here&nbsp;I&nbsp;should&nbsp;better&nbsp;append&nbsp;the&nbsp;file&nbsp;and&nbsp;go&nbsp;back&nbsp;to&nbsp;erase&nbsp;the&nbsp;central&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a5267"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-var">$p_archive_filename</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5268"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5269"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5270"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$v_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$v_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5271"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5272"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$zip_fd">zip_fd</a><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5273"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5274"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5275"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5276"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close</span></div></li>
<li><div class="src-line"><a name="a5277"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#methodprivCloseFd">privCloseFd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5278"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5279"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Close&nbsp;the&nbsp;temporary&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a5280"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fclose">fclose</a><span class="src-sym">(</span><span class="src-var">$v_zip_temp_fd</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5281"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5282"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5283"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5284"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5285"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5286"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5287"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5288"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privErrorLog()</span></div></li>
<li><div class="src-line"><a name="a5289"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5290"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5291"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5292"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivErrorLog">privErrorLog</a><span class="src-sym">(</span><span class="src-var">$p_error_code</span>=<span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_error_string</span>=<span class="src-str">''</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5293"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5294"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERROR_EXTERNAL">PCLZIP_ERROR_EXTERNAL</a>&nbsp;</span>==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5295"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id">PclError</span><span class="src-sym">(</span><span class="src-var">$p_error_code</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_error_string</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5296"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5297"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5298"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_code">error_code</a>&nbsp;=&nbsp;<span class="src-var">$p_error_code</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5299"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_string">error_string</a>&nbsp;=&nbsp;<span class="src-var">$p_error_string</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5300"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5301"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5302"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5303"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5304"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5305"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privErrorReset()</span></div></li>
<li><div class="src-line"><a name="a5306"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5307"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5308"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5309"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivErrorReset">privErrorReset</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5310"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5311"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_ERROR_EXTERNAL">PCLZIP_ERROR_EXTERNAL</a>&nbsp;</span>==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5312"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id">PclErrorReset</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5313"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5314"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5315"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_code">error_code</a>&nbsp;=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5316"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$error_string">error_string</a>&nbsp;=&nbsp;<span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5317"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5318"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5319"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5320"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5321"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5322"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privDisableMagicQuotes()</span></div></li>
<li><div class="src-line"><a name="a5323"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5324"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5325"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5326"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5327"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivDisableMagicQuotes">privDisableMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5328"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5329"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5330"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5331"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;function&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a5332"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">&quot;get_magic_quotes_runtime&quot;</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5333"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">&quot;set_magic_quotes_runtime&quot;</span><span class="src-sym">)))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5334"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5335"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5336"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5337"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;already&nbsp;done</span></div></li>
<li><div class="src-line"><a name="a5338"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">magic_quotes_status</a>&nbsp;!=&nbsp;-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5339"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5340"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5341"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5342"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Get&nbsp;and&nbsp;memorize&nbsp;the&nbsp;magic_quote&nbsp;value</span></div></li>
<li><div class="src-line"><a name="a5343"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">magic_quotes_status</a>&nbsp;=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/get_magic_quotes_runtime">get_magic_quotes_runtime</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5344"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5345"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Disable&nbsp;magic_quotes</span></div></li>
<li><div class="src-line"><a name="a5346"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">magic_quotes_status</a>&nbsp;==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5347"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/set_magic_quotes_runtime">set_magic_quotes_runtime</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5348"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5349"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5350"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5351"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5352"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5353"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5354"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5355"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5356"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;privSwapBackMagicQuotes()</span></div></li>
<li><div class="src-line"><a name="a5357"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5358"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5359"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5360"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5361"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/PclZip.html#methodprivSwapBackMagicQuotes">privSwapBackMagicQuotes</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5362"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5363"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result</span>=<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5364"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5365"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;function&nbsp;exists</span></div></li>
<li><div class="src-line"><a name="a5366"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">&quot;get_magic_quotes_runtime&quot;</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5367"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">&quot;set_magic_quotes_runtime&quot;</span><span class="src-sym">)))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5368"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5369"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5370"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5371"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;something&nbsp;to&nbsp;do</span></div></li>
<li><div class="src-line"><a name="a5372"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">magic_quotes_status</a>&nbsp;!=&nbsp;-<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5373"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5374"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5375"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5376"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Swap&nbsp;back&nbsp;magic_quotes</span></div></li>
<li><div class="src-line"><a name="a5377"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">magic_quotes_status</a>&nbsp;==&nbsp;<span class="src-num">1</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5378"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/set_magic_quotes_runtime">set_magic_quotes_runtime</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../PHPExcel/PclZip.html#var$magic_quotes_status">magic_quotes_status</a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5379"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5380"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5381"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5382"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5383"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5384"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5385"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5386"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5387"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;End&nbsp;of&nbsp;class</span></div></li>
<li><div class="src-line"><a name="a5388"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5389"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5390"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5391"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;PclZipUtilPathReduction()</span></div></li>
<li><div class="src-line"><a name="a5392"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5393"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5394"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5395"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5396"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathReduction">PclZipUtilPathReduction</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5397"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5398"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5399"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5400"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;not&nbsp;empty&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a5401"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_dir&nbsp;</span>!=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5402"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Explode&nbsp;path&nbsp;by&nbsp;directory&nbsp;names</span></div></li>
<li><div class="src-line"><a name="a5403"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">&quot;/&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_dir</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5404"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5405"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Study&nbsp;directories&nbsp;from&nbsp;last&nbsp;to&nbsp;first</span></div></li>
<li><div class="src-line"><a name="a5406"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_skip&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5407"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i</span>=<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">)</span>-<span class="src-num">1</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>&gt;=<span class="src-num">0</span><span class="src-sym">;&nbsp;</span><span class="src-var">$i</span>--<span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5408"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;current&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a5409"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;.&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5410"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Ignore&nbsp;this&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a5411"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Should&nbsp;be&nbsp;the&nbsp;first&nbsp;$i=0,&nbsp;but&nbsp;no&nbsp;check&nbsp;is&nbsp;done</span></div></li>
<li><div class="src-line"><a name="a5412"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5413"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;..&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5414"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_skip</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5415"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5416"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5417"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;First&nbsp;'/'&nbsp;i.e.&nbsp;root&nbsp;slash</span></div></li>
<li><div class="src-line"><a name="a5418"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5419"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-str">&quot;/&quot;</span>.<span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5420"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_skip&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5421"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;It&nbsp;is&nbsp;an&nbsp;invalid&nbsp;path,&nbsp;so&nbsp;the&nbsp;path&nbsp;is&nbsp;not&nbsp;modified</span></div></li>
<li><div class="src-line"><a name="a5422"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;TBC</span></div></li>
<li><div class="src-line"><a name="a5423"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$p_dir</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5424"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_skip&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5425"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5426"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5427"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Last&nbsp;'/'&nbsp;i.e.&nbsp;indicates&nbsp;a&nbsp;directory</span></div></li>
<li><div class="src-line"><a name="a5428"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i&nbsp;</span>==&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">)</span>-<span class="src-num">1</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5429"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$v_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5430"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5431"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Double&nbsp;'/'&nbsp;inside&nbsp;the&nbsp;path</span></div></li>
<li><div class="src-line"><a name="a5432"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5433"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Ignore&nbsp;only&nbsp;the&nbsp;double&nbsp;'//'&nbsp;in&nbsp;path,</span></div></li>
<li><div class="src-line"><a name="a5434"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;but&nbsp;not&nbsp;the&nbsp;first&nbsp;and&nbsp;last&nbsp;'/'</span></div></li>
<li><div class="src-line"><a name="a5435"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5436"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5437"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5438"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;item&nbsp;to&nbsp;skip</span></div></li>
<li><div class="src-line"><a name="a5439"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_skip&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5440"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_skip</span>--<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5441"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5442"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5443"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-var">$v_list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span>.<span class="src-sym">(</span><span class="src-var">$i</span>!=<span class="src-sym">(</span><a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">)</span>-<span class="src-num">1</span><span class="src-sym">)</span>?<span class="src-str">&quot;/&quot;</span>.<span class="src-var">$v_result</span>:<span class="src-str">&quot;&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5444"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5445"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5446"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5447"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a5448"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;skip</span></div></li>
<li><div class="src-line"><a name="a5449"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_skip&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5450"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_skip&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5451"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-str">'../'</span>.<span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5452"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_skip</span>--<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5453"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5454"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5455"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5456"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5457"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5458"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5459"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5460"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5461"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5462"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5463"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;PclZipUtilPathInclusion()</span></div></li>
<li><div class="src-line"><a name="a5464"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5465"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;indicates&nbsp;if&nbsp;the&nbsp;path&nbsp;$p_path&nbsp;is&nbsp;under&nbsp;the&nbsp;$p_dir&nbsp;tree.&nbsp;Or,</span></div></li>
<li><div class="src-line"><a name="a5466"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;said&nbsp;in&nbsp;an&nbsp;other&nbsp;way,&nbsp;if&nbsp;the&nbsp;file&nbsp;or&nbsp;sub-dir&nbsp;$p_path&nbsp;is&nbsp;inside&nbsp;the&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a5467"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_dir.</span></div></li>
<li><div class="src-line"><a name="a5468"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;function&nbsp;indicates&nbsp;also&nbsp;if&nbsp;the&nbsp;path&nbsp;is&nbsp;exactly&nbsp;the&nbsp;same&nbsp;as&nbsp;the&nbsp;dir.</span></div></li>
<li><div class="src-line"><a name="a5469"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;supports&nbsp;path&nbsp;with&nbsp;duplicated&nbsp;'/'&nbsp;like&nbsp;'//',&nbsp;but&nbsp;does&nbsp;not</span></div></li>
<li><div class="src-line"><a name="a5470"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;support&nbsp;'.'&nbsp;or&nbsp;'..'&nbsp;statements.</span></div></li>
<li><div class="src-line"><a name="a5471"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5472"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5473"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;0&nbsp;if&nbsp;$p_path&nbsp;is&nbsp;not&nbsp;inside&nbsp;directory&nbsp;$p_dir</span></div></li>
<li><div class="src-line"><a name="a5474"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;if&nbsp;$p_path&nbsp;is&nbsp;inside&nbsp;directory&nbsp;$p_dir</span></div></li>
<li><div class="src-line"><a name="a5475"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;2&nbsp;if&nbsp;$p_path&nbsp;is&nbsp;exactly&nbsp;the&nbsp;same&nbsp;as&nbsp;$p_dir</span></div></li>
<li><div class="src-line"><a name="a5476"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5477"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilPathInclusion">PclZipUtilPathInclusion</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_path</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5478"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5479"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5480"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a5481"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;path&nbsp;beginning&nbsp;by&nbsp;./</span></div></li>
<li><div class="src-line"><a name="a5482"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$p_dir&nbsp;</span>==&nbsp;<span class="src-str">'.'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5483"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">((</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">)&nbsp;</span>&gt;=<span class="src-num">2</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">'./'</span><span class="src-sym">)))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5484"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_dir&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><a href="http://www.php.net/getcwd">getcwd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-id">FALSE</span><span class="src-sym">)</span>.<span class="src-str">'/'</span>.<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_dir</span><span class="src-sym">,&nbsp;</span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5485"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5486"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$p_path&nbsp;</span>==&nbsp;<span class="src-str">'.'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5487"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">((</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">)&nbsp;</span>&gt;=<span class="src-num">2</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">2</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">'./'</span><span class="src-sym">)))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5488"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_path&nbsp;</span>=&nbsp;<a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><a href="http://www.php.net/getcwd">getcwd</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-id">FALSE</span><span class="src-sym">)</span>.<span class="src-str">'/'</span>.<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5489"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5490"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5491"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Explode&nbsp;dir&nbsp;and&nbsp;path&nbsp;by&nbsp;directory&nbsp;separator</span></div></li>
<li><div class="src-line"><a name="a5492"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list_dir&nbsp;</span>=&nbsp;<a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">&quot;/&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_dir</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5493"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list_dir_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_list_dir</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5494"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list_path&nbsp;</span>=&nbsp;<a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">&quot;/&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_path</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5495"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list_path_size&nbsp;</span>=&nbsp;<a href="http://www.php.net/sizeof">sizeof</a><span class="src-sym">(</span><span class="src-var">$v_list_path</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5496"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5497"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Study&nbsp;directories&nbsp;paths</span></div></li>
<li><div class="src-line"><a name="a5498"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5499"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$j&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5500"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i&nbsp;</span>&lt;&nbsp;<span class="src-var">$v_list_dir_size</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$j&nbsp;</span>&lt;&nbsp;<span class="src-var">$v_list_path_size</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_result</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5501"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5502"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;empty&nbsp;dir&nbsp;(path&nbsp;reduction)</span></div></li>
<li><div class="src-line"><a name="a5503"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_list_dir</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5504"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5505"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">continue</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5506"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5507"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_list_path</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5508"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$j</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5509"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">continue</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5510"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5511"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5512"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Compare&nbsp;the&nbsp;items</span></div></li>
<li><div class="src-line"><a name="a5513"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$v_list_dir</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-var">$v_list_path</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_list_dir</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(&nbsp;</span><span class="src-var">$v_list_path</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-str">''</span><span class="src-sym">))&nbsp;&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5514"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5515"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5516"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5517"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Next&nbsp;items</span></div></li>
<li><div class="src-line"><a name="a5518"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5519"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$j</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5520"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5521"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5522"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;if&nbsp;everything&nbsp;seems&nbsp;to&nbsp;be&nbsp;the&nbsp;same</span></div></li>
<li><div class="src-line"><a name="a5523"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$v_result</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5524"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Skip&nbsp;all&nbsp;the&nbsp;empty&nbsp;items</span></div></li>
<li><div class="src-line"><a name="a5525"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">((</span><span class="src-var">$j&nbsp;</span>&lt;&nbsp;<span class="src-var">$v_list_path_size</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_list_path</span><span class="src-sym">[</span><span class="src-var">$j</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">''</span><span class="src-sym">))&nbsp;</span><span class="src-var">$j</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5526"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i&nbsp;</span>&lt;&nbsp;<span class="src-var">$v_list_dir_size</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_list_dir</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">''</span><span class="src-sym">))&nbsp;</span><span class="src-var">$i</span>++<span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5527"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5528"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$i&nbsp;</span>&gt;=&nbsp;<span class="src-var">$v_list_dir_size</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$j&nbsp;</span>&gt;=&nbsp;<span class="src-var">$v_list_path_size</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5529"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;There&nbsp;are&nbsp;exactly&nbsp;the&nbsp;same</span></div></li>
<li><div class="src-line"><a name="a5530"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">2</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5531"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5532"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$i&nbsp;</span>&lt;&nbsp;<span class="src-var">$v_list_dir_size</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5533"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;The&nbsp;path&nbsp;is&nbsp;shorter&nbsp;than&nbsp;the&nbsp;dir</span></div></li>
<li><div class="src-line"><a name="a5534"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5535"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5536"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5537"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5538"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5539"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5540"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5541"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5542"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5543"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5544"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;PclZipUtilCopyBlock()</span></div></li>
<li><div class="src-line"><a name="a5545"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5546"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5547"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_mode&nbsp;:&nbsp;read/write&nbsp;compression&nbsp;mode</span></div></li>
<li><div class="src-line"><a name="a5548"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;:&nbsp;src&nbsp;&amp;&nbsp;dest&nbsp;normal</span></div></li>
<li><div class="src-line"><a name="a5549"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;:&nbsp;src&nbsp;gzip,&nbsp;dest&nbsp;normal</span></div></li>
<li><div class="src-line"><a name="a5550"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;:&nbsp;src&nbsp;normal,&nbsp;dest&nbsp;gzip</span></div></li>
<li><div class="src-line"><a name="a5551"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;:&nbsp;src&nbsp;&amp;&nbsp;dest&nbsp;gzip</span></div></li>
<li><div class="src-line"><a name="a5552"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5553"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5554"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilCopyBlock">PclZipUtilCopyBlock</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_dest</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_size</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_mode</span>=<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5555"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5556"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5557"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5558"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_mode</span>==<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5559"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5560"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5561"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5562"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$p_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5563"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5564"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$p_dest</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5565"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5566"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5567"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5568"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_mode</span>==<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5569"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5570"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5571"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5572"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$p_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5573"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzread">gzread</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5574"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-var">$p_dest</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5575"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5576"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5577"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5578"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_mode</span>==<span class="src-num">2</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5579"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5580"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5581"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5582"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$p_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5583"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/fread">fread</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5584"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzwrite">gzwrite</a><span class="src-sym">(</span><span class="src-var">$p_dest</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5585"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5587"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5588"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_mode</span>==<span class="src-num">3</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5589"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5590"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">while&nbsp;</span><span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>!=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5591"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5592"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_read_size&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$p_size&nbsp;</span>&lt;&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a>&nbsp;</span>?&nbsp;<span class="src-var">$p_size&nbsp;</span>:&nbsp;<span class="src-id"><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#definePCLZIP_READ_BLOCK_SIZE">PCLZIP_READ_BLOCK_SIZE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5593"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_buffer&nbsp;</span>=&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzread">gzread</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5594"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/gzwrite">gzwrite</a><span class="src-sym">(</span><span class="src-var">$p_dest</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_buffer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_read_size</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5595"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_size&nbsp;</span>-=&nbsp;<span class="src-var">$v_read_size</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5596"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5597"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5598"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5599"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5600"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5601"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5602"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5603"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5604"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5605"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;PclZipUtilRename()</span></div></li>
<li><div class="src-line"><a name="a5606"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5607"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;tries&nbsp;to&nbsp;do&nbsp;a&nbsp;simple&nbsp;rename()&nbsp;function.&nbsp;If&nbsp;it&nbsp;fails,&nbsp;it</span></div></li>
<li><div class="src-line"><a name="a5608"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;tries&nbsp;to&nbsp;copy&nbsp;the&nbsp;$p_src&nbsp;file&nbsp;in&nbsp;a&nbsp;new&nbsp;$p_dest&nbsp;file&nbsp;and&nbsp;then&nbsp;unlink&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a5609"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;first&nbsp;one.</span></div></li>
<li><div class="src-line"><a name="a5610"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5611"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_src&nbsp;:&nbsp;Old&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a5612"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_dest&nbsp;:&nbsp;New&nbsp;filename</span></div></li>
<li><div class="src-line"><a name="a5613"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5614"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;1&nbsp;on&nbsp;success,&nbsp;0&nbsp;on&nbsp;failure.</span></div></li>
<li><div class="src-line"><a name="a5615"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5616"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilRename">PclZipUtilRename</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_dest</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5617"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5618"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5619"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5620"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Try&nbsp;to&nbsp;rename&nbsp;the&nbsp;files</span></div></li>
<li><div class="src-line"><a name="a5621"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">@</span><a href="http://www.php.net/rename">rename</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_dest</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5622"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5623"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Try&nbsp;to&nbsp;copy&nbsp;&amp;&nbsp;unlink&nbsp;the&nbsp;src</span></div></li>
<li><div class="src-line"><a name="a5624"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">@</span><a href="http://www.php.net/copy">copy</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_dest</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5625"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5626"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5627"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">@</span><a href="http://www.php.net/unlink">unlink</a><span class="src-sym">(</span><span class="src-var">$p_src</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5628"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5629"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5630"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5631"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5632"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Return</span></div></li>
<li><div class="src-line"><a name="a5633"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5634"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5635"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5636"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5637"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5638"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;PclZipUtilOptionText()</span></div></li>
<li><div class="src-line"><a name="a5639"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5640"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Translate&nbsp;option&nbsp;value&nbsp;in&nbsp;text.&nbsp;Mainly&nbsp;for&nbsp;debug&nbsp;purpose.</span></div></li>
<li><div class="src-line"><a name="a5641"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5642"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_option&nbsp;:&nbsp;the&nbsp;option&nbsp;value.</span></div></li>
<li><div class="src-line"><a name="a5643"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5644"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;option&nbsp;text&nbsp;value.</span></div></li>
<li><div class="src-line"><a name="a5645"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5646"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilOptionText">PclZipUtilOptionText</a><span class="src-sym">(</span><span class="src-var">$p_option</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5647"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5648"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a5649"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_list&nbsp;</span>=&nbsp;<a href="http://www.php.net/get_defined_constants">get_defined_constants</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5650"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">for&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/reset">reset</a><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><span class="src-var">$v_key&nbsp;</span>=&nbsp;<a href="http://www.php.net/key">key</a><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;</span><a href="http://www.php.net/next">next</a><span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5651"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_prefix&nbsp;</span>=&nbsp;<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$v_key</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,&nbsp;</span><span class="src-num">10</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5652"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((&nbsp;&nbsp;&nbsp;(</span><span class="src-var">$v_prefix&nbsp;</span>==&nbsp;<span class="src-str">'PCLZIP_OPT'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5653"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span><span class="src-var">$v_prefix&nbsp;</span>==&nbsp;<span class="src-str">'PCLZIP_CB_'</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5654"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;<span class="src-sym">(</span><span class="src-var">$v_prefix&nbsp;</span>==&nbsp;<span class="src-str">'PCLZIP_ATT'</span><span class="src-sym">))</span></div></li>
<li><div class="src-line"><a name="a5655"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-var">$v_list</span><span class="src-sym">[</span><span class="src-var">$v_key</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-var">$p_option</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5656"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_key</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5657"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5658"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5659"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a5660"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$v_result&nbsp;</span>=&nbsp;<span class="src-str">'Unknown'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5661"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5662"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$v_result</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5663"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5664"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5665"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5666"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5667"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Function&nbsp;:&nbsp;PclZipUtilTranslateWinPath()</span></div></li>
<li><div class="src-line"><a name="a5668"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Description&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5669"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;Translate&nbsp;windows&nbsp;path&nbsp;by&nbsp;replacing&nbsp;'\'&nbsp;by&nbsp;'/'&nbsp;and&nbsp;optionally&nbsp;removing</span></div></li>
<li><div class="src-line"><a name="a5670"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;drive&nbsp;letter.</span></div></li>
<li><div class="src-line"><a name="a5671"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Parameters&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5672"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_path&nbsp;:&nbsp;path&nbsp;to&nbsp;translate.</span></div></li>
<li><div class="src-line"><a name="a5673"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;$p_remove_disk_letter&nbsp;:&nbsp;true&nbsp;|&nbsp;false</span></div></li>
<li><div class="src-line"><a name="a5674"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;Return&nbsp;Values&nbsp;:</span></div></li>
<li><div class="src-line"><a name="a5675"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;&nbsp;&nbsp;The&nbsp;path&nbsp;translated.</span></div></li>
<li><div class="src-line"><a name="a5676"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5677"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../PHPExcel/_PHPExcel---Shared---PCLZip---pclzip.lib.php.html#functionPclZipUtilTranslateWinPath">PclZipUtilTranslateWinPath</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$p_remove_disk_letter</span>=<span class="src-id">true</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a5678"></a>&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5679"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/stristr">stristr</a><span class="src-sym">(</span><a href="http://www.php.net/php_uname">php_uname</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-str">'windows'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5680"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Look&nbsp;for&nbsp;potential&nbsp;disk&nbsp;letter</span></div></li>
<li><div class="src-line"><a name="a5681"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><span class="src-var">$p_remove_disk_letter</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">((</span><span class="src-var">$v_position&nbsp;</span>=&nbsp;<a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-str">':'</span><span class="src-sym">))&nbsp;</span>!=&nbsp;<span class="src-id">false</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5682"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_path&nbsp;</span>=&nbsp;<a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-var">$v_position</span>+<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5683"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5684"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;-----&nbsp;Change&nbsp;potential&nbsp;windows&nbsp;directory&nbsp;separator</span></div></li>
<li><div class="src-line"><a name="a5685"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">((</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-str">'\\'</span><span class="src-sym">)&nbsp;</span>&gt;&nbsp;<span class="src-num">0</span><span class="src-sym">)&nbsp;</span>||&nbsp;<span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-num">1</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-str">'\\'</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a5686"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$p_path&nbsp;</span>=&nbsp;<a href="http://www.php.net/strtr">strtr</a><span class="src-sym">(</span><span class="src-var">$p_path</span><span class="src-sym">,&nbsp;</span><span class="src-str">'\\'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5687"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5688"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5689"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$p_path</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a5690"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a5691"></a>&nbsp;&nbsp;<span class="src-comm">//&nbsp;--------------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a5692"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5693"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5694"></a><span class="src-php">?&gt;</span></div></li>
</ol>
</div>
        <div class="credit">
		    <hr />
		    Documentation generated on Fri, 12 Oct 2012 00:17:25 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.4</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>